Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: possible bug in zsh - stderr not redirected if unsatisfied wildcard
On Mon, Apr 7, 2025 at 4:03 PM Ross Boulet <rossb@xxxxxxxxx> wrote:
>
> cartman2% ls ?? >stdout2 2>stderr2
>
> zsh: no matches found: ?? ß error not redirected, stdout2 and stderr2 not created
This is expected behavior, globbing takes place very early in the
command interpretation process.
If you want to get the error message from "ls" rather than the one
from the command parser, it probably means you are expecting the
behavior specified by "setopt NOMATCH".
Messages sorted by:
Reverse Date,
Date,
Thread,
Author