recursive grep
Bob McGowen Wyse Technology Training
bob at wyse.wyse.com
Thu Sep 7 03:57:55 AEST 1989
In article <2390 at auspex.auspex.com> guy at auspex.auspex.com (Guy Harris) writes:
>
> >I wouldn't complain about xargs not being capable of handling
> >filenames with spaces and newlines. There are a lot of other
> >programs that will break under the same circumstances.
>
>In which case I'd not only continue to complain about "xargs", but
>complain about those other programs as well....
The shell (as well as many other utilities) is line oriented, which
means that it uses whitespace to delimit input lines. Even though
you can quote these characters (as well as the wild cards) and get
them into file names it is not something that is recommended for
obvious reasons.
Since you can create them with the shell quoting mechanisms you
can access them from the shell with the same methods, but these
are not available to most other utilities. So the question
becomes one of how you would separate one name from another if you
were not using whitespace?
If you want to have spaces or newlines in filenames (which is
perfectly OK, the kernel doesn't care) you would have to consider
writing a new shell, a la the macintosh interface. Otherwise we
have to live with what we've got (which I am perfectly willing and
happy to do).
I guess this could be considered a flame though I do not intend it to be.
Bob McGowan (standard disclaimer, these are my own ...)
Customer Education, Wyse Technology, San Jose, CA
..!uunet!wyse!bob
bob at wyse.com
More information about the Comp.unix.wizards
mailing list