Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 3
    Or even read a b dump <<< '1 2 3 4 5'. Commented Jul 11, 2014 at 10:41
  • Thank you to all, btw I noted that mksh (on cygwin) is doing the same as bash. Commented Jul 11, 2014 at 10:56
  • @Michael Homer Good explanation! I found another one example that can explain that every command in pipeline run in own subshell: cat /etc/passwd | (read -r line ; echo $line). But next echo of $line which is not in pipeline put nothing on screen, because value was existed just between parentheses (subshell) . Hope, It helps someone. Commented May 3, 2018 at 10:28