delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/01/18:43:29

X-Spam-Check-By: sourceware.org
Message-Id: <200612012343.kB1NhDOg006881@tigris.pounder.sol.net>
from: cygzx AT trodman DOT com (Tom Rodman)
Reply-to: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: echo hi|egrep -v ho #no output
In-reply-to: <4570965A.CA1FD5DC@dessent.net>
References: <200612012037 DOT kB1KbY8b006101 AT tigris DOT pounder DOT sol DOT net> <4570965A DOT CA1FD5DC AT dessent DOT net>
Date: Fri, 01 Dec 2006 17:43:13 -0600
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

[back from shoveling out 2 driveways, a sidewalk, and a stuck car :->    ]

On Fri 12/1/06 12:53 PST cygwin AT cygwin DOT com wrote:
> Tom Rodman wrote:
> 
> >   ~ $ echo hi|egrep -v ho
> 
> WJFFM.
> 
> Note that egrep is a /bin/sh script that just calls grep -E.  So if your
> sh.exe was in use or something went wrong in the bash postinstall you
> may not have a functioning sh.exe.  Try "grep -E" and if this works but
> egrep does not then check your sh.exe, it should be an identical copy of
> bash.exe.  Worst cast, just "cp -p /bin/{bash,sh}.exe".

Thanks.. looks like I still had an old /bin/sh:

  ~ $ ls -l /bin/{bash,sh}.exe
  -r-xr-xr-x+ 1 ???????? Users        484352 Nov 29 21:38 /bin/bash.exe*
  -r-xr-xr-x+ 1 staffuser1  XYZ_ES_STAFF 451072 Aug  1  2005 /bin/sh.exe*
  ~ $ cp -p /bin/{bash,sh}.exe
  cp: overwrite `/bin/sh.exe'? y
  ~ $ echo hi|egrep -v ho
  hi
  ~ $

setup.exe did not complain though.  I know I have to update my /etc/{passwd,group}
files also..

--
thanks again.. I will update my notes,
Tom

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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