bugGNU Parallel - build and execute command lines from standard input in parallel - Bugs: bug #40134, FreeBSD: --shebang not working

 
 

bug #40134: FreeBSD: --shebang not working

Submitted by:  Ole Tange <tange>
Submitted on:  Sat 28 Sep 2013 09:35:51 AM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned 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.

 

Mon 23 Jun 2014 02:04:56 AM UTC, comment #3:

Fixed in 'Brazil'.

Ole Tange <tange>
Project AdministratorIn charge of this item.
Fri 13 Jun 2014 02:08:03 PM UTC, comment #2:

FreeBSD treats second arg as a single string:

#!/usr/bin/perl /home/t/tange/bin/parallel --shebang -r echo

Can't open perl script "/home/t/tange/bin/parallel --shebang -r echo": No such file or directory

But with env it works:

#!/usr/bin/env -S /home/t/tange/bin/parallel --shebang -r echo

#!/usr/bin/env -S parallel --shebang -r echo

Ole Tange <tange>
Project AdministratorIn charge of this item.
Sat 28 Sep 2013 04:00:41 PM UTC, comment #1:

http://www.in-ulm.de/~mascheck/various/shebang/#interpreter-script says

Most probably there isn't any Bell-Labs- or Berkeley-derived Unix that accepts the interpreter to be a script, which starts with #! again.

So try with path to perl

Ole Tange <tange>
Project AdministratorIn charge of this item.
Sat 28 Sep 2013 09:35:51 AM UTC, original submission:

#!/home/t/tange/bin/parallel --shebang -r echo
foo
bar

foo: not found
bar: not found

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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-06-23 tange StatusConfirmed => Fixed
        Assigned toNone => tange
        Open/ClosedOpen => Closed

    Back to the top


    Powered by Savane 3.3