OILS
/
demo
/ fd-show.sh
View on Github
|
oils.pub
7 lines, 1 significant
1
# Useful for testing shells
2
#
3
# What file descriptor, if any, is open when a sourced file is executing?
4
# bash -c '. demo/fd-show.sh'
5
# zsh -c '. demo/fd-show.sh'
6
7
ls -l /proc/$$/fd