Re:Bash $* and $@ (2017)
by dllthomas on Sunday January 12, 2020 @11:14PM
(#22031759)
It's actually a pretty simple model. Every process has an array of open file objects. File descriptors are indexes into that array. "Redirection" copies the underlying entries, and are processed left-to-right.
"Redirecting streams" winds up being confusing - it's all just `dup2`.
"Redirecting streams" winds up being confusing - it's all just `dup2`.