Your message dated Mon, 04 Jun 2012 06:02:09 +0000
with message-id <[email protected]>
and subject line Bug#562519: fixed in ack-grep 1.96-1
has caused the Debian Bug report #562519,
regarding ack-grep: Path auto-completion adds extra space after slash
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
562519: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=562519
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ack-grep
Version: 1.92-1
Severity: normal
Tags: patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The bash auto-completion bundled with ack-grep adds an extra space after the
slash. E.g., if _ is the cursor:
$ ack-grep foo /home_<tab>
results in
$ ack-grep foo /home/ _
This means that pressing tab again will give auto-complete options from the
current working directory instead of /home/. Compare with the auto-completion
for ls:
$ ls /ho_<tab>
$ ls /home/_
Apparently the fix is as simple as changing the two lines at the bottom for
this:
complete -F _ack $filenames ack
complete -F _ack $filenames ack-grep
And then:
$ source /etc/bash_completion
However before I found that simple solution I spent some time cleaning up this
file and I ended up with the attached file. I believe it works as the previous
one, if not better, but this is the second time I play with Bash
auto-completion, so I cannot be sure. I based my changes on
/etc/bash_completion.d/findutils and the completion for ls, rmdir, etc in
/etc/bash_completion. One small advantage of my version is that when Bash shows
the alternative completions for a directory it only shows one slash at the end,
where the current version (with the $filenames fix) shows two, which works but
looks ugly. E.g., mine:
$ ack-grep foo /etc/<tab>
acpi// group- papersize
Current:
/etc/acpi /etc/localtime
Note that my proposed version shows relative paths, which saves screen state.
- -- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages ack-grep depends on:
ii libfile-next-perl 1.06-1 file-finding iterator
ii perl 5.10.1-8 Larry Wall's Practical Extraction
ack-grep recommends no packages.
Versions of packages ack-grep suggests:
ii bash-completion 1:1.1-3 programmable completion for the ba
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAks0mCgACgkQ823633cP2P9NDACeMtC1XjMWSWqxgUQeDClzwPb6
B+gAnReS1Ie8i0mDJVih2d7sM67kBtPX
=g4n8
-----END PGP SIGNATURE-----
# vim: et ft=sh sts=2 sw=2 ts=2
#
# Copyright 2008-2009 Adam James <[email protected]>
# All rights reserved.
# This program is free software; you can redistribute it and/or modify it
# under the same terms as ack itself.
# ack-grep on Debian distros
type ack &>/dev/null || type ack-grep &>/dev/null && {
shopt -s extglob
_ack()
{
COMPREPLY=()
# --help, --man, --thpppt and --version are final
# so we return here if they are present
[[ "${COMP_WORDS[@]}" == \
*+([[:space:]])--@(help|man|th+(p)t|version)+([[:space:]])* ]] && return 0
local cur prev lngopt shtopt fnlopt typeopt nopattern
cur=`_get_cword`
prev=${COMP_WORDS[COMP_CWORD-1]}
lngopt='
--all-types --after-context= --before-context= --context=
--count --color --nocolor --env --noenv --flush
--follow --nofollow --group --nogroup --with-filename
--no-filename --ignore-case --ignore-dir=
--noignore-dir= --line= --files-with-matches
--files-without-matches --match --max-count=
--output= --pager= --nopager --passthru --print0
--literal --smart-case --nosmart-case --rc=
--sort-files --type --type-add --type-set
--unrestricted --invert-match --word-regexp
--heading --noheading --break --nobreak --sort-files
'
shtopt='
-a -A -B -C -c
-f -G -g -H -h
-i -l -L -m -n
-o -Q -u -w -1
'
fnlopt='--help --man --thpppt --version'
# try ack-grep first as Debian distributions contain a completely
# different program called ack.
typeopt=$(ack-grep --help=types 2>/dev/null || \
ack --help=types 2>/dev/null |perl -ne \
'print "--$1 --no$1 " if /^\s+--\[no\](\S+)\s+/' 2>/dev/null)
# set nopattern to 1 if only listing files
for i in ${COMP_WORDS[@]}; do
[[ "$i" = "-f" ]] && nopattern=1 && break
done
case "${cur}" in
# option with argument
-*=*)
# split the option and the argument
opt=${cur%%=*}
cur=${cur#*=}
# special cases
case "${opt}" in
--?(no)ignore-dir) # directory matching
#COMPREPLY=( $(compgen -d -- "${cur}") )
_filedir -d
return 0;;
--rc) # file matching
#COMPREPLY=( $(compgen -f -- "${cur}") )
_filedir
return 0;;
--pager) # command matching
COMPREPLY=( $(compgen -c -- "${cur}") )
return 0;;
*)
return 0;;
esac;;
# option without argument
-*)
[[ "${COMP_CWORD}" == 1 ]] && lngopt="${lngopt} ${fnlopt}"
COMPREPLY=( $(compgen -W \
"${lngopt} ${shtopt} ${typeopt}" -- "${cur}") )
return 0;;
*)
[[ "$prev" != -* || "$nopattern" == 1 ]] && \
_filedir
return 0;;
esac
}
complete -F _ack $filenames ack
complete -F _ack $filenames ack-grep
}
--- End Message ---
--- Begin Message ---
Source: ack-grep
Source-Version: 1.96-1
We believe that the bug you reported is fixed in the latest version of
ack-grep, which is due to be installed in the Debian FTP archive:
ack-grep_1.96-1.debian.tar.gz
to main/a/ack-grep/ack-grep_1.96-1.debian.tar.gz
ack-grep_1.96-1.dsc
to main/a/ack-grep/ack-grep_1.96-1.dsc
ack-grep_1.96-1_all.deb
to main/a/ack-grep/ack-grep_1.96-1_all.deb
ack-grep_1.96.orig.tar.gz
to main/a/ack-grep/ack-grep_1.96.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Ryan Niebur <[email protected]> (supplier of updated ack-grep package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sun, 03 Jun 2012 22:48:02 -0700
Source: ack-grep
Binary: ack-grep
Architecture: source all
Version: 1.96-1
Distribution: unstable
Urgency: low
Maintainer: Debian Perl Group <[email protected]>
Changed-By: Ryan Niebur <[email protected]>
Description:
ack-grep - grep-like program specifically for large source trees
Closes: 562519 593904 631208 636858
Changes:
ack-grep (1.96-1) unstable; urgency=low
.
* New Upstream Release (Closes: #636858)
- fixes bash completion spacing (Closes: #562519)
* Update to copyright format 1.0
- Fix copyright file to reference GPL-1 instead of GPL symlink
- Update copyright information
* Update policy version to 3.9.3
* Refresh patches
- add DEP3 patch tags
* add patch to fix bash completion
* Transfer maintenance into Debian Perl Group and update Maintainer /
Vcs-* fields to reflect that
* Remove quilt from build deps and use source format 3.0 quilt
* Fix rename patch to allow displaying the original program name in
--help and --version output when the user has created an ack symlink
(Closes: #631208)
* Remove incorrect information about using - for stdin (Closes: #593904)
- Fix the ACK-BASE title in the manpage to say ACK-GREP
Checksums-Sha1:
1962055cc3b7a336ec533df94e252ebe513b2730 1384 ack-grep_1.96-1.dsc
00f50aeffa38f0db73f03e69ce213d22f086bf4f 111986 ack-grep_1.96.orig.tar.gz
1c09e7c25a270e0e14afc9578ee1863fa1feb510 12967 ack-grep_1.96-1.debian.tar.gz
555e5db8665733cfb402105f3e13866dd820323b 55468 ack-grep_1.96-1_all.deb
Checksums-Sha256:
f667383d7eda38f7d10416c57162fa233b34a9f51e8cbb2deb6b75831a634829 1384
ack-grep_1.96-1.dsc
bb9d29842d8c5c1ec7ad9b577707aca0e1d278e8e21560dbed76ea3b5aa6cb64 111986
ack-grep_1.96.orig.tar.gz
60b83e7f607603fd67c9697af828f80400eec124c9c719b7d836451cd5fcfef5 12967
ack-grep_1.96-1.debian.tar.gz
5db98dfd630df05105915299a1f5f5f8e8da23169fdac9adcf32e1ba8f8d2ac2 55468
ack-grep_1.96-1_all.deb
Files:
0a6e18aa1fe69cbc21c161365e3310bf 1384 utils optional ack-grep_1.96-1.dsc
21701fb5f4670181dbf6ebe47984634b 111986 utils optional
ack-grep_1.96.orig.tar.gz
ea1141162d92b4bb40d3128db5ac104c 12967 utils optional
ack-grep_1.96-1.debian.tar.gz
28df6ac27dc39052f0c7c03f8b79adf4 55468 utils optional ack-grep_1.96-1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAk/MTNEACgkQMihv+PacasXRowCfXwlS4WBMkyaahJwlr4elDljn
7dUAnjKQGUTZ29u/M6ITaUiKB8qxg6yQ
=8Pwc
-----END PGP SIGNATURE-----
--- End Message ---