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

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to