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: Suspicious EXE named <left bracket>.exe in c:\cygwin\bin?


On 12 December 2010 05:01, Jeffrey Walton wrote:
> The executable name is suspicious at best. Attempting to search
> http://cygwin.com/packages/ results in an error "Invalid regular
> expression search string: `<left bracket>.exe`". Quotes, double quotes, and back
> ticks do not help during the search.
>
> What is this program supposed to do?

It's a synonym for the 'test' program for evaluating conditional
expressions, which allows stuff like this:

if [ $FOO = bar ]; then ...

The '[' in there invokes '[.exe'. Well, except that any shell that
cares about performance has a builtin for this to avoid forking a new
process for every conditional.

See also 'man test'.

Andy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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