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

Re: possible bug in zsh glob



please don't crosspost users and workers, all users messages are sent
to workers as well.

On 23 February 2010 17:13, dipakgaigole <dipakgaigole@xxxxxxxxxxxxxx> wrote:
> Hello,
>
> I am finding this difference in the behavior while pattern matching.
> Under Bash, it properly throws error for non matching pattern and shows the details of the matched pattern.
>
> *************** bash **************
> bash-2.05b$ pwd
> /tmp
> bash-2.05b$ ls -l *.txt *.jp
> ls: *.jp: No such file or directory

You'll notice it's ls printing this message, not bash.

> Whereas under zsh 4.3.4, if any non-matching pattern is found, it also skips/ignores the matched pattern output.

This is by design, if you want the weird bash behaviour you can setopt
nonomatch.

-- 
Mikael Magnusson



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