grepping /etc, who put these pipes here?

One minor annoyance I've encountered when switching between GNU/Linux and Solaris is that Solaris lays some pipes in the /etc directory. So if you happen to be logged in as root and you do something like this: grep foobar /etc/\* Then your grep may hang for a very long time, seemingly trying to read from the /etc/initpipe pipe. The solution is to only grep files (not pipes) with something like this: grep foobar `find /etc/\* -type f -print` This searches all of the subdirectories under /etc so it still isn't as quick as I'd like. I'm sure someone out there has a more elegant way of doing this. And I suspect there is a very good reason why rusty old pipes are laying around where folks can trip over them.
Comments:

Actually, there probably isn't much of a good reason. Come over to bugs.opensolaris.org and file a bug!

Posted by Dan Price on June 10, 2006 at 06:08 PM GMT+00:00 #

Thanks for the suggestion. I should have known. It didn't smell like a feature. I've logged the bug on opensolaris.org.

Posted by bnitz on June 12, 2006 at 02:12 AM GMT+00:00 #

Post a Comment:
Comments are closed for this entry.
About

bnitz

Search

Archives
« July 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
   
       
Today