[wplug] Stupid BASH Question

Eric C. Cooper ecc at cmu.edu
Thu Jul 3 11:56:59 EDT 2003


On Thu, Jul 03, 2003 at 10:50:34AM -0400, Wise, Jeremey wrote:
> I thought the syntax was similar to the if [ ! -d /directory ] but a
> -z .... apparently not:>) Man bash yield no clue... as I thought that is
> where I got the -z idea.

"man test" is often quicker than wading through the bash man page.

$ which [
/usr/bin/[
$ ls -l /usr/bin/[
lrwxrwxrwx    1 root     root            4 Jun 25 16:10 /usr/bin/[ -> test

(The [ ... ] logic is built into bash, but was external in the
original Bourne sh.)

-- 
Eric C. Cooper          e c c @ c m u . e d u



More information about the wplug mailing list