Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zmv exits from function
- X-seq: zsh-users 29397
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: zmv exits from function
- Date: Tue, 2 Jan 2024 11:50:04 +0000 (GMT)
- Archived-at: <https://zsh.org/users/29397>
- Importance: Normal
- In-reply-to: <CAH+w=7YUYK+2wg+r4yuxieBY6D4epwvi3sPYrs6tcWJk6GwKbw@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <69024621-9e60-474f-9c32-4edaecc3ff68@eastlink.ca> <CAH+w=7YUYK+2wg+r4yuxieBY6D4epwvi3sPYrs6tcWJk6GwKbw@mail.gmail.com>
> 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