[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Question on piping commands from stdin atop 20110822
From: |
Rhys Ulerich |
Subject: |
Question on piping commands from stdin atop 20110822 |
Date: |
Thu, 8 Sep 2011 10:07:18 -0500 |
If I understand parallel correctly, I expect the following two
commands to give identical results:
cat <<HERE | sh
echo foo
echo bar
echo baz
HERE
cat <<HERE | parallel ::: foo bar baz
echo {}
HERE
while using version 20110822 the first produces "foo\nbar\nbaz" as
expected while the second emits bash errors.
cat <<HERE | parallel --dry-run ::: foo bar baz
echo {}
HERE
shows commands like
nice -n10 bash -c foo
nice -n10 bash -c bar
nice -n10 bash -c baz
on my system (where I always enable niceness in my rc file).
Am I misunderstanding the behavior of piped input commands?
Thanks,
Rhys
- Question on piping commands from stdin atop 20110822,
Rhys Ulerich <=