zsh: Completion of =command should list all possibilities

Roman Odaisky to.roma.from.debbug at qwertty.com
Sat Feb 7 10:22:41 UTC 2009


Package: zsh
Version: 4.3.4-24ubuntu1
Severity: wishlist

If files with the same name exist in more than one place under PATH,
then =filename<Tab> should list them all.

Currently:

    % echo $PATH
    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
    % whereis cuetag
    cuetag: /usr/bin/cuetag /usr/local/bin/cuetag
    % file =cuetag‹Tab›
    all expansions
   [/usr/local/bin/cuetag]
    original
    =cuetag

After pressing Tab, both locations of the file could have been shown:

    % file =cuetag‹Tab›
    expansions
   [/usr/local/bin/cuetag] /usr/bin/cuetag
    all expansions
    /usr/local/bin/cuetag /usr/bin/cuetag
    original
    =cuetag

While such a situation is rather a rare one, it’s likely to cause
confusion whenever it occurs, so it would be quite handy for zsh
to give more information in that case.

-- System Information:
Debian Release: lenny/sid
  APT prefers hardy-updates
  APT policy: (500, 'hardy-updates'), (500, 'hardy-security'), (500, 'hardy-backports'), (500, 'hardy')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-23-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages zsh depends on:
ii  debconf [debconf-2 1.5.20                Debian configuration management sy
ii  libc6              2.7-10ubuntu4         GNU C Library: Shared libraries
ii  libncurses5        5.6+20071124-1ubuntu2 Shared libraries for terminal hand
ii  libpam-modules     0.99.7.1-5ubuntu6.1   Pluggable Authentication Modules f

Versions of packages zsh recommends:
ii  libcap1                  1:1.10-14build1 support for getting/setting POSIX.
ii  libpcre3                 7.4-1ubuntu2.1  Perl 5 Compatible Regular Expressi

-- no debconf information




More information about the ubuntu-users mailing list