www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/02/16:31:13

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-Id: <5.2.0.9.2.20030202132551.029c3f58@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
Date: Sun, 02 Feb 2003 13:31:03 -0800
To: cygwin AT cygwin DOT com
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: Setup 2.249.2.5, Package 'grep' 2.5-1, missing 'egrep.exe'
and 'fgrep.exe'
In-Reply-To: <00c701c2caff$dcd08700$78d96f83@pomello>
References: <5 DOT 2 DOT 0 DOT 9 DOT 0 DOT 20030202154555 DOT 02e2eed8 AT junk>
<008701c2cafe$7ccc4160$c2e686d9 AT webdev>
Mime-Version: 1.0

Max,

At 13:12 2003-02-02, Max Bowsher wrote:
>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.

On my system both egrep and fgrep are old-style Cygwin-only symlinks. 
But some of the symlinks in my Cygwin bin directory are the new Windows 
shortcut-based symlinks.

Perhaps this mixture occurs for me because my Cygwin installation 
predates the debut of the Windows-shortcut-based symlinks. Or could it 
be because some of the symlinks are created by post-install scripts and 
are new-style and others are created by the tar code embedded in the 
Cygwin Setup.exe installer and are the old kind?


> >> bash -c /bin/egrep
> >
> > within your batch scripts.
>
>What about grep -E ? (Which is preferred anyway for maximum portability.)

(Oh?)


>Max.


Randall Schulz 


--
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/

- Raw text -


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