Re: The binary "[.exe"

2006-03-24 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Buchbinder, Barry (NIH/NIAID) [E] on 3/24/2006 7:59 PM: > > "/bin/[ --help" gives a message while "/bin/test --help" is silent. > (Interestingly, "strings /bin/test.exe" show that "test.exe" contains > the help message.) "[ --version" giv

Re: The binary "[.exe"

2006-03-24 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Buchbinder, Barry (NIH/NIAID) [E] on 3/24/2006 7:59 PM: > > Are they supposed to be different? Yes. "[" requires a final "]" argument, while "test" does not. And POSIX requires that "test --help" and "[ --help ]" both return success (0

RE: Re: The binary "[.exe"

2006-03-24 Thread Buchbinder, Barry \(NIH/NIAID\) [E]
Eric Blake wrote: > Vanessa Murdock yahoo.com> writes: > >> I downloaded and installed cygwin. I did an ls -la on the /usr/bin/ >> directory and found a binary called "[.exe". Is this a legitimate >> utility (and what does it do)? > > Yes it is legitimate - it is part of coreutils. For what i

Re: The binary "[.exe"

2006-03-23 Thread Russell Montgomery
Hi Vanessa, The [ is the test operator. Normally it is used in conditional statements ( if [ "$TERM" = "xterm" ]; then ...) but testing can be used in conjunction with logical testing (&& || - logical and, logical or) for example: [ "$TERM" = "xterm" ] && echo "you are using xterm" [ $? -eq 0 ] |

Re: The binary "[.exe"

2006-03-23 Thread Eric Blake
Vanessa Murdock yahoo.com> writes: > I downloaded and installed cygwin. I did an ls -la on > the /usr/bin/ directory and found a binary called > "[.exe". Is this a legitimate utility (and what does > it do)? Yes it is legitimate - it is part of coreutils. For what it does, try "/bin/[ --hel

The binary "[.exe"

2006-03-23 Thread Vanessa Murdock
Hi, I downloaded and installed cygwin. I did an ls -la on the /usr/bin/ directory and found a binary called "[.exe". Is this a legitimate utility (and what does it do)? (Note: I tried searching the web and the mail list archives for information about this, but the "[" character isn't recogni