[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bugs in GNU grep for DOS/Win
From: |
Jeremy Yallop |
Subject: |
Re: bugs in GNU grep for DOS/Win |
Date: |
Thu, 21 Jun 2001 09:30:23 +0100 (BST) |
--- Eric Pement <address@hidden> wrote:
> (2) Second problem.
>
> Grep v2.4.2 (Cygwin compilation) issues an error
> message when trying
> to read a file with the Read-Only attribute set. It
> reports:
>
> [filename]: Permission denied
>
> although a Read-Only file on a DOS/Win platform may
> be read by any
> user. I think this is also a misbehavior. Feedback
> is welcome.
Hi,
Cygwin grep 2.4.2, on MS-Windows 2000, works fine for
me on read-only files:
$ cat foo.txt
bar
baz
bim
bam
$ ls -l foo.txt
-r--r--r-- 1 administ None 20 Jun 21 9:22 foo.txt
$ grep bar foo.txt
bar
$ grep --version
grep (GNU grep) 2.4.2
Copyright 1988, 1992-1999, 2000 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.
(The behavio[u]r is the same whether the read-only
attribute is set by cygwin's chmod or from MS-Windows
Explorer)
HTH,
Jeremy
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie