recursive grep

John Macdonald jmm at ecijmm.UUCP
Mon Sep 11 12:00:52 AEST 1989


In article <2434 at auspex.auspex.com> guy at auspex.auspex.com (Guy Harris) writes:
| [...]
|
|In other words, the fact that it's inconvenient or impossible to use
|file names containing certain characters in *some* programs cannot be
|used as an excuse for not fixing at least some other programs -
|including, as noted, "xargs" - from being able to handle them.  Or, to
|quote the Robustness Principle cited in at least one RFC: "Be
|conservative in what you send; be liberal in what you accept from
|others;" the latter part means "be liberal enough to accept file names
|containing funny characters, since some funny character may decide to
|create a file with such a name."

It is easy to get that definition of liberal while the current discussion
about "white and control characters in filenames" is going on.  However,
in a different context, one might consider it to be liberal to allow
free form input (e.g. accepting multi-column ls output, user-typed
input with multiple files per line and unnoticed trailing whitespace, etc.).

Of course, this is the sort of situation that leads to feeping creaturism
- (xargs -n for null-delimited names; xargs -l for line delimted names;
xargs -f for free format white delimited names; watch this space for the
next exciting option appearing soon on a command line near you).
-- 
John Macdonald



More information about the Comp.unix.wizards mailing list