Why Sponsor Oils? | source | all docs for version 0.22.0 | all versions | oilshell.org
Warning: Work in progress! Leave feedback on Zulip or Github if you'd like this doc to be updated.
Why does a Unix shell start processes? How many processes are started?
Related: Interpreter State. These two docs are the missing documentation for shell!
shopt -s lastpipe
set -o pipefail
Implicit subshell:
{ echo 1; echo 2; } | wc -l
A SubProgramThunk
is started for the LHS of |
.
d=$(date)
d=$(date)
<(sort left.txt)
diff -u <(sort left.txt) <(sort right.txt)
fork
or sleep 2 &
forkwait
or ( echo hi )
Explicit Subshells are Rarely Needed.
pushd
/ popd
, or cd { }
in YSH.noforklast
Bugs / issues
sh -i -c 'echo hi'
set -o pipefail
! false
and
! false | true
Oils/YSH specific:
shopt -s verbose_errexit
xargs
and xargs -P
find -exec
make -j
ninja