guide.bash.academy
guide.bash.academy copied to clipboard
syntax issue for pipelines
syntax for pipelines: [time [-p]] [ ! ] command [ [|||&] command2 ... ] is a bit confusing. | or |& in the second part, seems like optional. Shall we update it with [time [-p]] [ ! ] command [ | or |& command2 ... ]?
Similar [potential] issue in Compound Commands' syntax:
if list [ ;|<newline> ] then list [ ;|<newline> ] fi
Should we suppose list is always terminated by control-operator according to:
command control-operator [ command2 control-operator ... ]?
If yes we should update cd music; mplayer *.mp3 example. But I don't think it should, that's why ;|<newline> part needs to be not optional:
if list ; or <newline> then list ; or <newline> fi