Re: Fwd: variable scope bug in while loop when using pipe

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

 



Hello,

It's not a bug, both are POSIX, placing a pipe member in the current
environment instead of in a subshell being an extension:

 Command substitution, commands that are grouped with parentheses, and
 asynchronous lists shall be executed in a subshell environment.
 Additionally, each command of a multi-command pipeline is in a
 subshell environment; as an extension, however, any or all commands
 in a pipeline may be executed in the current environment.

 http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_12

++
Seb.
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux