delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/12/12/03:14:30

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <AANLkTikYB0XcdfNtpjd7sS78+EEz+WXz5fa-A1E4+t9R@mail.gmail.com>
References: <AANLkTikYB0XcdfNtpjd7sS78+EEz+WXz5fa-A1E4+t9R AT mail DOT gmail DOT com>
Date: Sun, 12 Dec 2010 08:14:04 +0000
Message-ID: <AANLkTinZ-6usNNi=JSvgdoqg8r77cmU2Gp0SsvHv33fv@mail.gmail.com>
Subject: Re: Suspicious EXE named <left bracket>.exe in c:\cygwin\bin?
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019