Next | Unix Command Internals | 11 |
But when you redirect output, the shell does something magical
The child shell sees that you said > /tmp/procs
It closes file #1
It then opens /tmp/procs and attaches it as open file #1
Next | Copyright © 2003 M. J. Dominus |