This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: echo hi|egrep -v ho #no output


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

On Fri 12/1/06 12:53 PST cygwin@cygwin.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]