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

L A Walsh cygwin@tlinx.org
Mon Sep 7 05:34:40 GMT 2020


In directory
/proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services/eventlog
I wanted to list all the ".dll"s that handled various types of
events.

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

Thanks!
linda




More information about the Cygwin mailing list