parallel/testsuite/tests-to-run/test03.sh
Ole Tange 8865cbb10f parallel: Argument handling re-written to OO.
The code is quite messy, the implementation is fairly slow, but the
structure seems sound and it passes the testsuite.
basename {/} and {/.} implemented.
Flushing of STDERR and STDOUT after each job completes.
2010-11-22 10:35:53 +01:00

14 lines
211 B
Bash
Executable file

#!/bin/bash
PAR=parallel
rm -rf tmp 2>/dev/null
cp -a input-files/testdir2 tmp
cd tmp
# tests if -c (cat | sh) works
perl -e 'for(1..25) {print "echo a $_; echo b $_\n"}' | $PAR 2>&1 | sort
cd ..
rm -rf tmp