ports/186490: emulators/qemu-devel: Can't run scripts with shebang args.

Mathieu Arnold mat at FreeBSD.org
Wed Feb 5 17:30:03 UTC 2014


>Number:         186490
>Category:       ports
>Synopsis:       emulators/qemu-devel: Can't run scripts with shebang args.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 05 17:30:02 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Mathieu Arnold
>Release:        FreeBSD 10.0-RELEASE i386
>Organization:
Absolight
>Environment:
System: FreeBSD aragorn.in.absolight.net 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Fri Jan 17 01:46:25 UTC
>Description:
When a script has a shebang with arguments, say "#!/usr/bin/perl -w" or
"#!/bin/sh -" qemu-xxx tries to exec the whole line, and fails, obviously.

e.g.:

root at pkg:~ # cat test.pl
#!/usr/bin/perl -w
print "ok\n";
root at pkg:~ # ./test.pl
Error loading /usr/bin/perl -w
root at pkg:~ # ln -s /usr/local/bin/perl5.16.3 /usr/bin/"perl -w"
root at pkg:~ # ./test.pl
ok

Generated with FreeBSD Port Tools 0.99_11 (mode: change, diff: SVN)
>How-To-Repeat:
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list