On Sunday 03 February 2008 13:17, kalyan wrote:
> Hi list,
> How do I make busybox shell to search for builtin
> commands after some point in my PATH by specifying
> %builtin? I am using BB-1.2.1 and "ash" shell.
> 
> As an example, i have tried the builtin "kill" command
> to override normal "kill" command and didnt succeed. I
> have attached the log.

kill is a "regular" builtin and those always take precedence
over commands. Exampe of "non-regular" builtin
(NB: ash is instrumented to give debug printouts):

# ./busybox ash
/.1/usr/srcdevel/bbox/fix/busybox.t8 # let  <======== builtin
ash: builtin found
ash: builtinloc <= 0
ash: let: expression expected
/.1/usr/srcdevel/bbox/fix/busybox.t8 # PATH=/bin:%builtin
/.1/usr/srcdevel/bbox/fix/busybox.t8 # let  <========= /bin/let
I am /bin/let
/.1/usr/srcdevel/bbox/fix/busybox.t8 #

I don't know why ash has this distinction.
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to