This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: The binary "[.exe"

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 ] || exit   # This will exit if the previous exit status was

Corpus Christi, Texas where's it's currently 54 and breezy

Vanessa Murdock wrote:
> 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 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.)
> Thanks,
> Vanessa
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> --
> Unsubscribe info:
> Problem reports:
> Documentation:
> FAQ:         

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]