Next | Unix Command Internals | 10 |
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 © 2002 M. J. Dominus |