They left -0 out of xargs?! REALLY, IBM? Merciful $DEITY. That, coupled with find -print0, solve a great big pile of issues and security holes.
On Sat, Mar 29, 2025 at 4:37 PM Paul Gilmartin < [email protected]> wrote: > On Fri, 28 Mar 2025 11:05:05 -0400, Rick Troth wrote: > > ... > >Consumer systems REGULARLY have blanks in filenames, which makes > >scripted automation difficult. Other punctuation can also be troublesome. > > > In shell scripts this is facilitated vy: > find ... -print0 | xargs -0 ... > (all POSIX) > > And find (recently) provides the -print0 predicate. Bur xargs lacks > the -0 option. What was the rationale for the half-compliance with > POSIX, omitting the part that makes it most useful? > > -- > gil > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > -- Jay Maynard ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
