No, that makes perfect sense, in retrospect, especially the
vertical bar character being interpreted as a pipe or as an
alternation character.
On Tue, May 31, 2022 at 1:12 AM Larry Ploetz <lploetz.sg@gmail.com> wrote:
I would think these should all produce the same output
$ parallel echo "{}" \| cat -nvet ::: VAR
1 VAR$
$ parallel -q echo "{}" \| cat -nvet ::: VAR
VAR | cat -nvet
$ parallel echo {} \| cat -nvet ::: VAR
1 VAR$
$ parallel -q echo {} \| cat -nvet ::: VAR
VAR | cat -nvet
It is by design. Read:
https://www.gnu.org/software/parallel/parallel_design.html#always-running-commands-in-a-shell
If it is still unclear, please write again, because then I need to
improve the explanation.
/Ole