ash: is %builtin in PATH still expected to work?
Christian Franke
Christian.Franke at t-online.de
Sat Oct 21 14:55:20 UTC 2023
Hi,
the file shell/ash.c still contains code to handle '%builtin' (and
'%func') in PATH. Is this still expected to work?
Testcase (same with busybox 1.35.0 on Debian 12 and 1.36.1 on Cygwin):
$ dash -c 'type echo'
echo is a shell builtin
$ busybox ash -c 'type echo'
echo is a shell builtin
$ PATH="$PATH:%builtin" dash -c 'type echo'
echo is /usr/bin/echo
$ PATH="$PATH:%builtin" busybox ash -c 'type echo'
echo is a shell builtin
AFAICS the last related commit was "ash: exec: Stricter pathopt parsing"
(6c4f87e, Feb 17 2020).
Sorry if I missed something.
--
Thanks,
Christian
More information about the busybox
mailing list