On 20:29 05 Mar 2002, Jim Wright <[EMAIL PROTECTED]> wrote: | On Sat, 2 Mar 2002, Cameron Simpson wrote: | > <FLAME>More important, though, is that xargs suffers from much the same | > design flaw that your original script did - it has quoting bugs, and | > readily mangles unusual filenames a lot like your script was doing. This | > so annoyed me that I NEVER use xargs, and wrote a less "feature rich" | > but also nonmangling version here: | > | > http://www.zip.com.au/~cs/scripts/xxargs | > | > precisely because xargs is a broken piece of junk.</FLAME> | | No, it isn't broken. Just use the tools that are available. A simple | example is... | | find /usr/share/afterstep/start/Quit/ -type f -print0 | xargs -0 ls -l | | Just a directory that happens to have files whose names contain spaces. | "-print0" tells find to separate output with NULL characters instead of | space characters, and "-0" tells xargs to use NULL characters to split | input instead of whitespace.
If you're _just_ taking output from find, sure. But if you're doing something more complex, then what? Your solution works for only the most trivial cases. -- Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/ Ode to a Squid: Half a mile, half a mile, Half a mile onward, All in the Valley of Death Rode the Six Hundred. Copyright Tennyson/Richards(tm) - Jan Richards <[EMAIL PROTECTED]> _______________________________________________ Seawolf-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/seawolf-list