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

possible bug in zsh glob



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
-rw-r--r-- 1 dipak man 2 Feb 23 07:40 a.txt
-rw-r--r-- 1 dipak man 2 Feb 23 07:40 b.txt
-rw-r--r-- 1 dipak man 2 Feb 23 07:40 c.txt
bash-2.05b$
**********************************


Whereas under zsh 4.3.4, if any non-matching pattern is found, it also skips/ignores the matched pattern output.
************ zsh 4.3.4 ************
bash-2.05b$ ~/myzsh/bin/zsh-4.3.4 --version
zsh 4.3.4 (i686-pc-linux-gnu)
bash-2.05b$ ~/myzsh/bin/zsh-4.3.4
#pwd
/tmp
#ls -l *.txt *.jp
zsh: no matches found: *.jp
#set -o | grep -i glob
nobareglobqual off
nocaseglob off
cshnullglob off
extendedglob off
noglob off
noglobalexport off
noglobalrcs off
globassign off
globcomplete off
globdots off
globsubst off
kshglob off
nullglob off
numericglobsort off
shglob off
warncreateglobal off
#
**********************************

To me it looks like a bug. Does anyone has seen such behavior?

Thanks,
Dipak


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