2010-12-14 08:40:42 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
SERVER1=parallel-server3
|
|
|
|
SERVER2=parallel-server2
|
|
|
|
|
|
|
|
echo '### Test --trc with space added in filename'
|
|
|
|
echo original > '/tmp/parallel space file'
|
2012-02-20 00:48:28 +00:00
|
|
|
echo '/tmp/parallel space file' | stdout parallel --trc "{} more space" -S parallel@$SERVER1 cat {} ">{}\\ more\\ space"
|
2010-12-14 08:40:42 +00:00
|
|
|
cat '/tmp/parallel space file more space'
|
2011-05-31 20:07:59 +00:00
|
|
|
rm '/tmp/parallel space file more space'
|
2010-12-14 08:40:42 +00:00
|
|
|
|
|
|
|
echo '### Test --trc with >|< added in filename'
|
|
|
|
echo original > '/tmp/parallel space file'
|
2012-02-20 00:48:28 +00:00
|
|
|
echo '/tmp/parallel space file' | stdout parallel --trc "{} >|<" -S parallel@$SERVER1 cat {} ">{}\\ \\>\\|\\<"
|
2010-12-14 08:40:42 +00:00
|
|
|
cat '/tmp/parallel space file >|<'
|
2011-05-31 20:07:59 +00:00
|
|
|
rm '/tmp/parallel space file >|<'
|
2010-12-15 23:12:02 +00:00
|
|
|
|
|
|
|
echo '### Test --return with fixed string (Gave undef warnings)'
|
|
|
|
touch a
|
|
|
|
echo a | stdout parallel --return b -S .. echo ">b" && echo OK
|
|
|
|
rm a b
|
2012-03-12 22:38:38 +00:00
|
|
|
|
|
|
|
echo '### bug #35427: quoting of {2} broken for --onall'
|
|
|
|
echo foo: /bin/ls | parallel --colsep ' ' -S localhost --onall ls {2}
|