in reply to Re: A bizarre way to get a list of filenames
in thread A bizarre way to get a list of filenames

or by using traditional shell file expansion mechanisms

I'm glad you didn't suggest <*.xml *.txt> :-) Splitting its arguments on whitespace by default is IMHO one of the caveats of glob.

Replies are listed 'Best First'.
Re^3: A bizarre way to get a list of filenames
by davido (Cardinal) on Aug 05, 2019 at 16:04 UTC

    Truth be known, I tested the splitting on whitespace approach while composing the response and deemed it to work in this case, but to be too fragile to bother introducing as another option.


    Dave