diff options
| author | Ron Yorston <rmy@pobox.com> | 2023-03-31 13:04:23 +0100 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2023-03-31 13:04:23 +0100 |
| commit | 950b318a2a11264dd608c6ab9ee3ed3d06db4ef9 (patch) | |
| tree | 2bec0d0cf4b8e29049d0ed3f09f152bce76f0821 /scripts/basic | |
| parent | 5ead1485640c81d0b020768d59a32d9029a164ee (diff) | |
| download | busybox-w32-950b318a2a11264dd608c6ab9ee3ed3d06db4ef9.tar.gz busybox-w32-950b318a2a11264dd608c6ab9ee3ed3d06db4ef9.tar.bz2 busybox-w32-950b318a2a11264dd608c6ab9ee3ed3d06db4ef9.zip | |
ash: Unix-style paths, shell builtins and applets
Some shell builtins also exist as applets: echo, printf, pwd and
test, for example. If such an applet is referenced using a Unix-
style path, e.g. /usr/bin/echo, the applet should be run rather
than the builtin. Instead the current code says:
sh: /usr/bin/echo: file not found
Rearrange the tests in shellexec() so the correct behaviour occurs.
Actually, the error message was also incorrect due to a separate
bug. Commit d71cb67ff (win32: revert special treatment of Unix-style
absolute paths) failed to allocate space on the stack so that the
command passed to tryexec() could have an extension added if
required.
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
