bugGNU Parallel - Bugs: bug #40134, FreeBSD: --shebang not working

 
 

bug #40134: FreeBSD: --shebang not working

Submitter:  Ole Tange <tange>
Submitted:  Sat 28 Sep 2013 09:35:51 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  tange
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Fixed in 'Brazil'.

Ole Tange <tange>
Group administrator
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>
Group administrator
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>
Group administrator
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>
Group administrator

 

(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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    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.13-4448.
    Corresponding source code