guide.bash.academy icon indicating copy to clipboard operation
guide.bash.academy copied to clipboard

syntax issue for pipelines

Open mcavdar opened this issue 3 years ago • 1 comments

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 ... ]?

mcavdar avatar Mar 26 '22 21:03 mcavdar

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

mcavdar avatar Mar 26 '22 22:03 mcavdar