bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Command substitution before while loop


From: Andreas Schwab
Subject: Re: Command substitution before while loop
Date: Wed, 01 Apr 2020 19:47:46 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (gnu/linux)

On Apr 01 2020, Krystian Wojtas via Bug reports for the GNU Bourne Again SHell 
wrote:

>         Making comments in pipes using command substitution is very helpful. 
> But there is syntax error it it is done just before while loop. Could it be 
> considered as bug?

Not a bug.  Reserved words are only recognized at the start of a
command, before any expansions.  For the same reason a compound command
cannot be preceded by redirections.

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]