Opened 10 years ago
Closed 10 years ago
#42 closed defect (fixed)
ash: Search for script interpreter in PATH
Reported by: | dmik | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | shell | Version: | |
Severity: | Keywords: | ||
Cc: |
Description (last modified by )
ash doesn't currently search for the interpreter specified with the !# magic in PATH (as kLIBC spawnvp does). See comment:1 for more info.
Change History (5)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
comment:3 by , 10 years ago
Description: | modified (diff) |
---|---|
Summary: | ash: Bring to ports → ash: Search for script interpreter in PATH |
Type: | task → defect |
comment:4 by , 10 years ago
Component: | *none → shell |
---|
comment:5 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This problem is fixed by switching from NetBSD ash to Debian dash (see http://trac.netlabs.org/ports/ticket/26#comment:11 for more details). I performed the above perl test and it works nicely with dash.
Note:
See TracTickets
for help on using tickets.
There is at least one problem that I want to fix: ash doesn't currently search for the interpreter specified with the
!#
magic in PATH (as kLIBCspawnvp
does). As a result, the following scriptt.pl
:will give the following error when run from a shell script or by sh.exe directly (via the -c option):
As opposed to that,
spawnvp
will search forperl
inPATH
if it finds out that/usr/bin/perl
doesn't exist.