bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ program


From: Alfred M\. Szmidt
Subject: Re: [ program
Date: Tue, 03 Jan 2006 01:21:22 +0100

   I was wondering if that [ program is supposed to be there, or if
   it's a typo.  If I run info [ I get the info page for test, so I
   wasn't certain if they were related.

They are the same, [ is for systems that don't have [ builtin into the
shell.  Consider the following shell expresion:

if [ -z $foo ]; then foo; else bar; fi

You could also write the above using `test', test -z $foo.

Cheers.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]