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.

Required fields*

2
  • I don't get it: does read use fd 0 as standard or is 4 a pre-existing fd? Is read v <&4; the same as read v 0<&4;? Commented Oct 8, 2015 at 19:04
  • @LePloit - ...uhh. both. I put the read command in a {compound command} context, and so all redirections which occur to the right of its closing brace are applied to the entire group, and they are applied before any enclosed commands are run. So &4 pre-exists the read simple command. Commented Oct 8, 2015 at 22:30