For ash shell: functional "type -p"
Denis Vlasenko
vda.linux at googlemail.com
Sun May 20 06:12:21 PDT 2007
Hi Mats.
[late reply. sorry...]
On Thursday 03 May 2007 12:44, Mats Erik Andersson wrote:
> 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'm file with this, as the code is smaller :)
> 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.
Yes indeed.
Applied as rev 18654. Thanks Mats.
--
vda
More information about the busybox
mailing list