Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
3 events
when toggle format what by license comment
Nov 15, 2016 at 14:17 comment added Jonathan Leffler Normally, it would be better to use exec 5>&1 and exec 6>&2, using output redirection notation rather than input redirection notation for the outputs. You get away with it because when the script is run from a terminal, standard input is also writable and both standard output and standard error are readable by virtue (or is it 'vice'?) of a historical quirk: the terminal is opened for reading and writing and the same open file description is used for all three standard I/O file descriptors.
Nov 15, 2016 at 14:08 history edited Jonathan Leffler CC BY-SA 3.0
Fix trivial typos
Apr 15, 2015 at 20:46 history answered Eyal leshem CC BY-SA 3.0