Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
possible bug in zsh glob
- X-seq: zsh-users 14867
- From: "dipakgaigole" <dipakgaigole@xxxxxxxxxxxxxx>
- To: <zsh-users@xxxxxxx>, <zsh-workers@xxxxxxx>
- Subject: possible bug in zsh glob
- Date: 23 Feb 2010 16:13:02 -0000
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=redf; d=rediffmail.com; b=au6CCoue8HWOBdr1R+FbyQGwh2zT4sC/qIOzAdhCUNeOH2SIaQUDgrzcExjnEuCXD99auwIzDyQnwe3/X1cDqixj3VUoIJvb0LO4JaX8uTawxBofmF1+bbge5zBdGUyA65mDfkCGsDxVI94NpMTM1exmKHBxyKYd2YUogsu/Saw= ;
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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