For ash shell: functional "type -p"
Mats Erik Andersson
mats.andersson64 at comhem.se
Thu May 3 10:44:25 UTC 2007
I have been missing, inside ash, a short path response
from the type builtin:
$ type -p tail
/usr/bin/tail
The attached difference file ackomplishes this in a
somewhat cheating manner, since it only detect whether
the first argument of "type" begins with a dash, and then
verbosity is switched off.
I might be prejudiced, but the ASH_CMDCMD conditionals
inside typecmd() and describe_command() seem utterly
pointless, so they are removed in order to implement
this "short type" functionality.
Regards, Mats E A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: type_with_only_path.diff
Type: text/x-patch
Size: 730 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070503/52c0167e/attachment-0002.bin
More information about the busybox
mailing list