mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 05:57:54 +00:00
8bec8de5df
Passes testsuite.
19 lines
413 B
Bash
19 lines
413 B
Bash
#!/bin/bash
|
|
|
|
minipv() {
|
|
sleep=$1
|
|
while read line; do
|
|
echo "$line"
|
|
sleep $sleep
|
|
done
|
|
}
|
|
export -f minipv
|
|
|
|
echo '### Test id = --id `tty`'
|
|
parallel --id `tty` --lb --semaphore seq 1 10 '|' minipv 0.1
|
|
echo '### Test default id = --id `tty`'
|
|
parallel --lb --semaphore seq 11 20 '|' minipv 0.01
|
|
echo '### Test --semaphorename `tty`'
|
|
parallel --semaphorename `tty` --semaphore --wait
|
|
echo done
|