bugGNU Parallel - build and execute command lines from standard input in parallel - Bugs: bug #44045, --return and csh

 
 

bug #44045: --return and csh

Submitted by:  Ole Tange <tange>
Submitted on:  Sun 18 Jan 2015 10:57:33 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Ole Tange <tange>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 18 Oct 2015 02:56:13 PM UTC, comment #1:

Fixed in 20150322.

Ole Tange <tange>
Project AdministratorIn charge of this item.
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)'`"

Ole Tange <tange>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by tange (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 18 Oct 2015 02:56:13 PM UTCtangeStatusNone=>Fixed
      Assigned toNone=>tange
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1