Package: zsh
Version: 4.3.6-7
Severity: normal

The glob qualifer - doesn't work correctly on dangling symlinks.
For instance:

$ zsh <<EOF
set -ex
echo $ZSH_VERSION
mkdir globtest-dir
cd globtest-dir
touch file1
chmod 644 file1
ln -s file1 file2
ln -s file0 file3
ls -l file*
ls -l file*(-W)
EOF

gives:

+zsh:2> echo 4.3.6
4.3.6
+zsh:3> mkdir globtest-dir
+mkdir:0> mkdir globtest-dir
+zsh:4> cd globtest-dir
+zsh:5> touch file1
+zsh:6> chmod 644 file1
+zsh:7> ln -s file1 file2
+ln:0> ln -s file1 file2
+zsh:8> ln -s file0 file3
+ln:0> ln -s file0 file3
+zsh:9> ls -l file1 file2 file3
-rw-r--r-- 1 lefevre lefevre 0 2008-12-28 22:34:28 file1
lrwxrwxrwx 1 lefevre lefevre 5 2008-12-28 22:34:28 file2 -> file1
lrwxrwxrwx 1 lefevre lefevre 5 2008-12-28 22:34:28 file3 -> file0
+zsh:10> ls -l file3
lrwxrwxrwx 1 lefevre lefevre 5 2008-12-28 22:34:28 file3 -> file0

file*(-W) should have no matches.

zsh 4.3.9 on my Mac OS X machine behaves correctly.

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (900, 'testing'), (900, 'stable'), (200, 'unstable')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.26-1-powerpc
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages zsh depends on:
ii  libc6                     2.7-16         GNU C Library: Shared libraries
ii  libcap2                   2.11-2         support for getting/setting POSIX.
ii  libncursesw5              5.7+20081213-1 shared libraries for terminal hand

Versions of packages zsh recommends:
ii  libpcre3                      7.6-2.1    Perl 5 Compatible Regular Expressi

Versions of packages zsh suggests:
ii  zsh-doc                       4.3.6-7    zsh documentation - info/HTML form

-- debconf information:
* zsh/rcmove:



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to