Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <00c701c2caff$dcd08700$78d96f83@pomello>
From: "Max Bowsher" <maxb@ukf.net>
To: "Elfyn McBratney" <elfyn-cygwin@exposure.org.uk>,
   "cygwin" <cygwin@cygwin.com>,
   "G. Ken Holman" <gkholman@CraneSoftwrights.com>
References: <5.2.0.9.0.20030202154555.02e2eed8@junk> <008701c2cafe$7ccc4160$c2e686d9@webdev>
Subject: Re: Setup 2.249.2.5, Package 'grep' 2.5-1, missing 'egrep.exe'  and 'fgrep.exe'
Date: Sun, 2 Feb 2003 21:12:58 -0000
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

Elfyn McBratney wrote:
>> Perhaps ... but I'm not running under bash and never have.  Did I
>> miss a documented restriction that the programs *only* run under
>> bash?
>
> It depends on the package. With something like grep you cannot (?)
> call a egrep from cmd.exe/command.com per se as it is a symbolic link
> to grep.exe (a windows shortcut) but you could call it from bash

Ah, but since it is created by setup, it is a system-cookie type symlink,
not a windows-shortcut type symlink.

>> bash -c /bin/egrep
>
> within your batch scripts.

What about grep -E ? (Which is preferred anyway for maximum portability.)

Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

