Timeline for Understanding I/O redirection in Bash
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 8, 2015 at 22:44 | history | edited | mikeserv | CC BY-SA 3.0 |
added 689 characters in body
|
| Oct 8, 2015 at 22:30 | comment | added | mikeserv |
@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.
|
|
| Oct 8, 2015 at 19:04 | comment | added | Le Ploit |
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;?
|
|
| Oct 8, 2015 at 18:36 | history | edited | mikeserv | CC BY-SA 3.0 |
added 192 characters in body
|
| Oct 8, 2015 at 17:29 | history | answered | mikeserv | CC BY-SA 3.0 |