Fixed bug: parallel -j 50 without command does not act as cat | sh

This commit is contained in:
Ole Tange 2007-09-11 10:52:54 +02:00
parent 1c9fcbdc37
commit 67f2a6dfaa
4 changed files with 4 additions and 1 deletions

View file

@ -304,7 +304,7 @@ $command = undef;
$Global::verbose = 0;
$Global::grouped = 1;
$Global::quoting = 0;
$Global::input_is_filename = (defined @ARGV);
$Global::input_is_filename = (@ARGV);
$/="\n";
$Global::debug = (defined $::opt_d);

View file

@ -1,3 +1,4 @@
test of cat pipe sh
1-col.txt
2-col.txt
bar

View file

@ -4,6 +4,7 @@ rm -rf tmp 2>/dev/null
cp -a input-files/testdir tmp
cd tmp
echo echo test of cat pipe sh | parallel -j 50 2>&1
find . -name '*.jpg' | parallel -j +0 convert -geometry 120 {} {}_thumb.jpg
find . -name '*_thumb.jpg' | ren 's:/([^/]+)_thumb.jpg$:/thumb_$1:'

View file

@ -1,3 +1,4 @@
test of cat pipe sh
1-col.txt
2-col.txt
bar