Suspicious EXE named <left bracket>.exe in c:\cygwin\bin?

Andy Koppe andy.koppe@gmail.com
Sun Dec 12 11:29:00 GMT 2010


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



More information about the Cygwin mailing list