Weird behavior in 'grep'ing for string in /proc/registry...

L A Walsh
Mon Sep 7 05:34:40 GMT 2020

In directory
I wanted to list all the ".dll"s that handled various types of

I tried
/bin/grep -Pr '\.dll'

but got a load of bogus error messages:

/bin/grep: Group: Is a directory
/bin/grep: ImagePath: Is a directory
/bin/grep: Description: Is a directory
/bin/grep: ObjectName: Is a directory

looking at ImagePath:
> ll ImagePath
-r--r----- 1 65 Sep  6 22:06 ImagePath
> read -r x <ImagePath
> echo $x
C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted

Doesn't look like a directory.
So, bug in 'grep'?

I'm hoping this isn't limited to my machine...


More information about the Cygwin mailing list