"SourceForge.net" <[EMAIL PROTECTED]> writes:

> ================================
> U:\Distrib\Win2K\Images>dir *.inf /b
> hi.inf
> ho.inf
>
> U:\Distrib\Win2K\Images>dir FI600E\*.inf /b
> SYSPREP.INF
>
> U:\Distrib\Win2K\Images>head FI600E\SYSPREP.INF
> ;SetupMgrTag
> [Unattended]
>     OemSkipEula=Yes
>     UnattendMode=FullUnattended
>     DriverSigningPolicy=Ignore
>
> U:\Distrib\Win2K\Images>grep -ir Oem *.inf
>
> U:\Distrib\Win2K\Images>del *.inf
>
> U:\Distrib\Win2K\Images>grep -ir Oem *.inf
> grep: *.inf: Invalid argument
> ================================

The problem is that -r only recurses into directories which match the
pattern *.inf (which none of them do, of course!) This is indeed
annoying behaviour, but I think it's the same on Unix. Maybe it's
less of an issue there.

> Also this grep seems to not like to have stdout piped to it for it to grep 
> upon.
>
> U:\Distrib\Win2K\Images>grep --help | grep -i version
> grep: fstat: Invalid argument

This doesn't happen for me (on Windows XP):

>grep --help | grep -i version
  -V, --version             print version information and exit

>grep --version
grep (GNU grep) 2.5.1

Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

>type \Utils\GnuWin32\manifest\grep-2.5.1a-bin.ver
Grep-2.5.1a: Binaries
Grep: print lines matching a pattern

> On Linux with the same build of grep, the piping works fine, but the recurse
> is also a pain there.

Ah, so you have hit this on Unix. So the recursion issue is for the
developers of grep, rather than an issue with the gnuwin32 port.

Paul.
-- 
If Java had true garbage collection, most programs would delete
themselves upon execution. -- Robert Sewell



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users

Reply via email to