mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-12-23 21:27:53 +00:00
3009913a66
Merging of tests.
19 lines
633 B
Bash
19 lines
633 B
Bash
#!/bin/bash
|
|
|
|
echo '### Test stdin goes to first command only ("-" as argument)'
|
|
cat >/tmp/parallel-script-for-script <<EOF
|
|
#!/bin/bash
|
|
echo via first cat |parallel --tty -kv cat ::: - -
|
|
EOF
|
|
chmod 755 /tmp/parallel-script-for-script
|
|
echo via pseudotty | script -q -f -c /tmp/parallel-script-for-script /dev/null
|
|
sleep 2
|
|
echo '### Test stdin goes to first command only ("cat" as argument)'
|
|
cat >/tmp/parallel-script-for-script2 <<EOF
|
|
#!/bin/bash
|
|
echo no output |parallel --tty -kv ::: 'echo a' 'cat'
|
|
EOF
|
|
chmod 755 /tmp/parallel-script-for-script2
|
|
echo via pseudotty | script -q -f -c /tmp/parallel-script-for-script2 /dev/null
|
|
sleep 2
|