Opened 11 years ago
Last modified 11 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 , 11 years ago
comment:2 by , 11 years ago
comment:3 by , 11 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 kLIBCspawnvpdoes). 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,
spawnvpwill search forperlinPATHif it finds out that/usr/bin/perldoesn't exist.