Hi,
   this came up while running a shell script (part of oprofile)
on an embedded target using busybox. Not sure if it's a bug in
busybox, or ambiguity in the spec, or both. I can repro on a
debian 'testing' system with a prebuilt busybox binary.

$ PS1='busybox$ ' busybox ash


BusyBox v1.10.2 (Debian 1:1.10.2-1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

busybox$ test -a = -a && echo same
same
busybox$ test -e = -e && echo same
same
busybox$ test \( -a = -a \) && echo same
same
busybox$ test \( -e = -e \) && echo same
ash: closing paren expected
busybox$ test true -a -a = -a && echo same   
same
busybox$ test true -a -e = -e && echo same
ash: -e: unknown operand


bash behaves same with -a and -e

(In the script that came up, it was something like
  test -z "something" -a "$1" = something
 and $1 happened to be '-e'
)


dd
-- 
Dave Denholm              <[EMAIL PROTECTED]>       http://www.esmertec.com
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to