Opened 10 years ago
Last modified 10 years ago
#42 closed defect
ash: Search for script interpreter in PATH — at Version 3
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 (3)
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 |
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.