Sun 18 Jan 2015 10:57:33 PM UTC, original submission:
Exit value is probably lost in csh if you do --trc.
Fix with:
perl -e '$bash=shift; $csh=shift; $clean=shift;$wd=shift; $file=shift;
system("mkdir -p $wd; rsync --protocol 30 --rsync-path=cd\ $wd\;\ rsync -rlDzR -essh I<sln>:$file $wd;");
if($clean) {unlink $wd/$file; rmdir $wd;}
if($bash=~s/h//) {exit$bash;} exit$csh;' "$?h" "$status" clean wdwith./ filewith./
Test med $wd = ":/ / !" og fil " <!"
Test med $wd = "/tmp/:/ / !" og fil " <!"
Test med $wd = ":/ / !" og fil "/tmp/ <!"
Test med $wd = "/tmp/:/ / !" og fil "/tmp/ <!"
mkdir d"`perl -e 'print pack("c*",1..9,11..46,48..255)'`"
echo ged > d"`perl -e 'print pack("c",1..9,11..46,48..255)'`"/f"`perl -e 'print pack("c",1..9,11..46,48..255)'`"
Virker i csh
echo ged >> d"`perl -e 'print pack("c",1..9,11..46,48..159,161..255)'`"/f"`perl -e 'print pack("c",1..9,11..46,48..159,161.\
.255)'`"
echo ged > d"`perl -e 'print pack("c",1..9,11..46,48..255)'`"/f"`perl -e 'print pack("c",1..9,11..46,48..255)'`"
|