delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/12/16:01:38

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <5.1.0.14.2.20010912125200.02654880@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Wed, 12 Sep 2001 12:59:12 -0700
To: "Ronald Landheer" <info AT rlsystems DOT net>, <cygwin AT cygwin DOT com>
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: Grep & recursion
In-Reply-To: <NFBBLOMHALONCDMPGBLFEEAMCBAA.info@rlsystems.net>
Mime-Version: 1.0

Ronald,

I cannot replicate your results when invoking grep as you indicate from a 
Cygwin BASH shell. There is an extensive directory structure and there were 
in fact many files with the pattern "foo" but the diagnostic about 
"Permission denied" on directories never appeared.

-==-
% 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.
-==-

-==-
BASH_VERSINFO=([0]="2" [1]="05" [2]="0" [3]="8" [4]="release" 
[5]="i686-pc-cygwin")
BASH_VERSION=$'2.05.0(8)-release'
-==-

-==-
% cygcheck -s

Cygnus Win95/NT Configuration Diagnostics
Current System Time: Wed Sep 12 12:56:06 2001

WinNT Ver 5.0 build 2195

...

     Cygwin DLL version info:
         dll major: 1003
         dll minor: 2
         dll epoch: 19
         dll bad signal mask: 19005
         dll old termios: 5
         dll malloc env: 28
         api major: 0
         api minor: 39
         shared data: 3
         dll identifier: cygwin1
         mount registry: 2
         cygnus registry name: Cygnus Solutions
         cygwin registry name: Cygwin
         program options name: Program Options
         cygwin mount registry name: mounts v2
         cygdrive flags: cygdrive flags
         cygdrive prefix: cygdrive prefix
         cygdrive default prefix:
         build date: Sun May 20 23:28:17 EDT 2001
         shared id: cygwin1S3
-==-

-==-
% mount
D:\cygwin\bin on /usr/bin type system (binmode)
D:\cygwin\lib on /usr/lib type system (binmode)
D:\cygwin on / type system (binmode)
\\.\A: on /dev/fd0 type user (binmode)
c: on /cygdrive/c type user (binmode,noumount)
d: on /cygdrive/d type user (binmode,noumount)
e: on /cygdrive/e type user (binmode,noumount)
g: on /cygdrive/g type user (binmode,noumount)
h: on /cygdrive/h type user (binmode,noumount)
-==-


Randall Schulz
Mountain View, CA USA


At 06:53 2001-09-12, Ronald Landheer wrote:
>Hello (again) all,
>
>I think I've written about this before and not gotten an answer, but I 
>could neither find it in a Google search, nor in my own archives - which, 
>I should mention, were kinda destroyed two weeks ago :(
>
>I have three GCC compiler sets on my system: DJGPP, Cygwin and MinGW32 - 
>the latter of which doesn't include grep. When I use the DJGPP grep to 
>search for 'foo' in all my projects under my home dir (from the Bash 
>command line that comes with DJGPP) I get a nice listing:
>
>-- BEGIN SNIPPET --
>bash-2.04$ grep -rnHi foo *
>(..) long, long list of stuff
>--- END SNIPPET ---
>
>Doing the same thing under Cygwin, I get this:
>
>-- BEGIN SNIPPET --
>Ronald Landheer AT ALLY ~
>$ grep -rnHi foo *
>(..) local text files are searched (if any)
>grep: <any dirname>: Permission denied
>(..) normal response for Binary files
>--- END SNIPPET ---
>
>The versions are the newest available for either (2.4 for DJGPP, 2.4.2 for 
>Cygwin).
>
>The question: what causes this and what did I do wrong?
>
>Greetz!
>
>Ronald


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