-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
-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
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
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 ] |
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
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
6 matches
Mail list logo