This is the mail archive of the
mailing list for the Cygwin project.
Re: The binary "[.exe"
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 ] || exit # This will exit if the previous exit status was
Corpus Christi, Texas where's it's currently 54 and breezy
Vanessa Murdock wrote:
> 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 recognized (with or without quotes),
> and so every post that mentions ".exe" is retrieved,
> which is almost all of them. So I apologize if this
> has been answered elsewhere.)
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Problem reports: http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html