Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Probable bug in zsh 4.x
- X-seq: zsh-workers 19268
- From: Ulrik Haugen <qha@xxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Probable bug in zsh 4.x
- Date: Wed, 03 Dec 2003 00:42:44 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Hi all!
I think I've found a bug in zsh versions 4.0.7 and 4.1.1.
Globbing with character classes doesn't work with local Swedish
characters (åäöÅÄÖ). As you can see my test gives the desired result
in zsh 3.0.8, and I also get the same result in /bin/sh from SunOS
5.8.
------------------------------ 8< ------------------------------
haugen% cat zshexpn.test
# -*- mode:sh; sh-shell: zsh; -*-
echo $ZSH_VERSION
for name in anders björn; do
case $name in
*[åäöÅÄÖ]*)
echo "$name contains one or more of 'åäöÅÄÖ'"
;;
*[b]*)
echo "$name contains one or more 'b'"
;;
esac
done
haugen% zsh30 zshexpn.test
3.0.8
björn contains one or more of 'åäöÅÄÖ'
haugen% zsh zshexpn.test
4.0.7
björn contains one or more 'b'
haugen% zsh-beta zshexpn.test
4.1.1
björn contains one or more 'b'
haugen%
------------------------------ 8< ------------------------------
--
Ulrik Haugen <qha@xxxxxxxxxxxxxx>
"It's a poor laser blaster that doesn't work both ways"
-- Salvor Hardin through Isaac Asimov
Messages sorted by:
Reverse Date,
Date,
Thread,
Author