Why Sponsor Oils? | source | all docs for version 0.23.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 lastpipeset -o pipefailImplicit 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.noforklastBugs / issues
sh -i -c 'echo hi'set -o pipefail
! false and
! false | trueOils/YSH specific:
shopt -s verbose_errexitxargs and xargs -Pfind -execmake -j
ninja