aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-03-31 13:04:23 +0100
committerRon Yorston <rmy@pobox.com>2023-03-31 13:04:23 +0100
commit950b318a2a11264dd608c6ab9ee3ed3d06db4ef9 (patch)
tree2bec0d0cf4b8e29049d0ed3f09f152bce76f0821 /scripts
parent5ead1485640c81d0b020768d59a32d9029a164ee (diff)
downloadbusybox-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')
0 files changed, 0 insertions, 0 deletions