My question is about redirection precedence is bash. Suppose you have a command:
cmd1 < cmd2 > cmd3
Would it translate to:
(cmd1 < cmd2) > cmd3
Or
cmd1 < (cmd2 > cmd3)
|
My question is about redirection precedence is bash. Suppose you have a command:
Would it translate to:
Or
|
||||
|
|
|
The POSIX standard specifies that shell redirection is from left to right; that is, order is significant:
As for piping:
|
|||||||||||||||||
|
|
I guess neither. A pair of parenthesis means a sub-shell. But in this case, no sub-shell will be started because of the redirection. Bash simply feeds I'm thinking, do you mean something like |
|||
|
|