Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zmv exits from function



> On 30/12/2023 20:38 GMT Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> Arguably zmv could use null_glob.  Thoughts from -workers?

I guess the right thing to do regardless of option is that it should
fail gracefully just by returning status 1 --- so not propagating the
error to the caller.  If the effect of NULL_GLOB is we loop over nothing,
that presumably gives us status 0?  I'd say we should probably detect that
as a (return status) failure for minimum surprises.

pws




Messages sorted by: Reverse Date, Date, Thread, Author