[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: setting IFS to new line doesn't work while searching?



On Fri, Dec 15, 2023 at 02:30:21PM +0100, Nicolas George wrote:
> Greg Wooledge (12023-12-15):
> >     readarray -d '' fndar < <(
> >         find "$sdir" ... -printf 'stuff\0' |
> >         sort -z --otherflags
> >     )

> It is possible to do it safely in bash plus command-line tools, indeed.
> But in such a complex case, it is better to use something with a
> higher-level interface. I am sure File::Find and Version::Compare can
> let Perl do the same thing in a much safer way.

Equally safe, perhaps.  Not safer.  I don't know those particular perl
modules -- are they included in a standard Debian system, or does
one need to install optional packages?  And then there's a learning
curve for them as well.

By the way, your MUA is adding 10000 years to its datestamps.


Reply to: