C warning that I can't seem to track down
Lennart Sorensen
lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Wed Aug 9 19:02:50 UTC 2006
On Wed, Aug 09, 2006 at 02:12:02PM -0400, William Park wrote:
> It forces 'grep' to terminate if there is nothing coming through the
> pipe. Otherwise, 'grep' will just sit there reading stdin.
xargs -r would have dealt with that. On the other hand the case with
one argument and getting grep to list the filename does get solved with
/dev/null. It solves the no arguments problem as a side effect really.
--
Len Sorensen
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list