Open desktop mechanic

grepping /etc, who put these pipes here?

Friday Jun 09, 2006

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.

[2] Comments
Like this post? del.icio.us | furl | slashdot | technorati | digg
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 11, 2006 at 01:08 AM 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 09:12 AM GMT+00:00 #

Post a Comment:
Comments are closed for this entry.