Learn more about Israeli war crimes in Gaza, funded by the USA, Germany, the UK and others.
Tag: #dup2
How does swapping stdin and stderr work?
The magic shell string
3>&2 2>&1 1>&3-
swaps stdout and stderr. It does with the
dup2
system call to swap file descriptors.
2018-02-22
All content copyright James Fisher.
Jim Fisher
CV
Speaking
Blogroll
RSS
TigYog
Kickabout