[BusyBox] Utility of having [ in currently defined functions

Paul Fox pgf at brightstareng.com
Thu Jun 24 15:07:59 UTC 2004


 > 
 > I see a symlink [ in the _install directory. Also when I just type busybox on 
 > prompt, part of the output is ...
 > 
 > "
 > ....
 > Currently defined functions:
 >          [, ash, basename, bunzip2, busybox, bzcat, cat, chgrp
 > ...
 > "
 > 
 > Can anyone please tell me the utility of having this [ ?


see "man test".  "[" is another name for the "test" command:

    if [ "foo" ]

is equivalent to:

    if test "foo"

paul
=---------------------
 paul fox, pgf at brightstareng.com



More information about the busybox mailing list