3 ms·
Actually, shells do not just use standard input and standard output, albeit that (in the interactive case) the other file descriptors are usually pointing to te
by JdeBP 8y ago
Actually, shells do not just use standard input and standard output, albeit that (in the interactive case) the other file descriptors are usually pointing to terminal devices too.
* https://unix.stackexchange.com/a/434839/5132 https://unix.stackexchange.com/a/434839/5132
- jstimpfle 8y agoYep, that's true. I was missing some finer details. There is stderr, which usually is the same as stdout (terminal), and you can run shells in noninteractive mode (they will detect when they are not connected to a terminal). In this case there is no prompt and no job control.