[Pkg-zsh-devel] Bug#773070: zsh: ignore-parents in completion ignores too much with bind mounts

Roman Odaisky roma at qwertty.com
Sat Dec 13 22:19:46 UTC 2014


Package: zsh
Version: 5.0.7-5
Severity: minor

With zshrc containing the following:

zstyle ':completion:*' ignore-parents parent pwd ..

Try:

cd $some_path
mkdir x y
mount --bind x y
cd x
cd ../<Tab>

Expected:

completion should suggest all directories under $some_path except x

Actually:

y is excluded as well, which is wrong.

Rationale:

There’s no sense in doing `cd x; cd ../x` except cases even more narrow
than the one I’m describing; at the same time, cd ../other-directory
when the other-directory is bind-mounted to the current one does make
sense (in my case, there were further bind mounts in that directory so
it behaved quite differently).

-- Package-specific info:

dpkg-query: no path found matching pattern /usr/share/zsh/vendor-completions

dpkg-query: no path found matching pattern /usr/share/zsh/vendor-functions


-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.13-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages zsh depends on:
ii  dpkg        1.17.21
ii  libc6       2.19-13
ii  libcap2     1:2.24-6
ii  libtinfo5   5.9+20140913-1+b1
ii  zsh-common  5.0.7-5

Versions of packages zsh recommends:
ii  libncursesw5  5.9+20140913-1+b1
ii  libpcre3      1:8.35-3.1

Versions of packages zsh suggests:
pn  zsh-doc  <none>

-- no debconf information



More information about the Pkg-zsh-devel mailing list