Package: bash
Version: 3.0-15
Severity: minor
Currently, bash completion assumes that less can handle any file while zless
can handle only .gz files. This is wrong, zless can handle both gzipped and
plain files, less cannot handle gzipped files (unless lessopen or similar is
used).
An important situation where this happens is when reading package
documentation by typing zless /usr/share/doc/somepackage/<TAB> .
With the current expansion, uncompressed files are not proposed, which is a
problem because policy is to compress or not compress those files based on
their size, making the subset rather random.
Thus I respectfully suggest that completion for less, zless and any similar
rules (bzless ? zcat ?) be changed as follows:
Current behaviour
less expansion includes uncompressed files
zless expansion omits uncompressed files
both expansions include .gz files etc. but only zless can actually use
them.
Suggested new behaviour:
less expansion omits .gz .z .Z .tgz and .bz2 files
zless expansion does not omit these files
both expansions include uncompressed files
I am unsure about what to do for .bz2 files as the current zless
implementation does not handle those.
Respectfully
Jakob
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11jbj3.2.10
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Versions of packages bash depends on:
ii ba 3.1.6 Debian base system miscellaneous f
ii li 2.3.2.ds1-22 GNU C Library: Shared libraries an
ii li 5.4-8 Shared libraries for terminal hand
ii pa 1:4.0.3-38.0.0.0.0.01.20050419.194404 Debian in a chroot: The general to
bash recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]