Package: quilt
Version: 0.48-2
Severity: normal
When using bash TAB completion, such as in "quilt pop <TAB>",
if no patch is applied, it shows the standard error of the command
"quilt applied" ("No patches applied"), used in the source file
bash_completion to get the list of applied patches.
I attach a patch to correct this problem, in the hope it were useful.
I talked with the mantainers of bash-completion, that would to know
if you would move this file to that package. In such a case, contact
them at [email protected] or through
"reportbug bash-completion".
Thank you
--
enzotib
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-2-686 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages quilt depends on:
ii bzip2 1.0.5-3 high-quality block-sorting file co
ii diffstat 1.47-1 produces graph of changes introduc
ii gettext 0.17-8 GNU Internationalization utilities
ii patch 2.5.9-5 Apply a diff file to an original
quilt recommends no packages.
Versions of packages quilt suggests:
pn graphviz <none> (no description available)
ii procmail 3.22-17 Versatile e-mail processor
-- no debconf information
--- a/bash_completion
+++ b/bash_completion
@@ -123,7 +123,7 @@
add)
case $prev in
-P)
- COMPREPLY=( $( compgen -W "$(quilt applied)" -- $cur ) )
+ COMPREPLY=( $( compgen -W "$(quilt applied 2>/dev/null)" --
$cur ) )
;;
*)
_quilt_comfile
@@ -134,7 +134,7 @@
annotate)
case $prev in
-P)
- COMPREPLY=( $( compgen -W "$(quilt applied)" -- $cur ) )
+ COMPREPLY=( $( compgen -W "$(quilt applied 2>/dev/null)" --
$cur ) )
;;
*)
_quilt_comfile
@@ -143,7 +143,7 @@
esac
;;
applied)
- COMPREPLY=( $( compgen -W "-h $(quilt applied)" -- $cur ) )
+ COMPREPLY=( $( compgen -W "-h $(quilt applied 2>/dev/null)" -- $cur
) )
;;
delete)
COMPREPLY=( $( compgen -W "-n -r -h --backup $(quilt series)" --
$cur ) )
@@ -154,7 +154,7 @@
COMPREPLY=( $( compgen -W "0 1" -- $cur ) )
;;
-P|--combine)
- COMPREPLY=( $( compgen -W "$(quilt applied)" -- $cur ) )
+ COMPREPLY=( $( compgen -W "$(quilt applied 2>/dev/null)" --
$cur ) )
;;
--diff|-U|-C)
;;
@@ -171,10 +171,10 @@
files)
case $prev in
--combine)
- COMPREPLY=( $( compgen -W "$(quilt applied)" -- $cur ) )
+ COMPREPLY=( $( compgen -W "$(quilt applied 2>/dev/null)" --
$cur ) )
;;
*)
- COMPREPLY=( $( compgen -W "-a -l -v -h --combine $(quilt
applied)" -- $cur ) )
+ COMPREPLY=( $( compgen -W "-a -l -v -h --combine $(quilt
applied 2>/dev/null)" -- $cur ) )
;;
esac
;;
@@ -198,7 +198,7 @@
COMPREPLY=( $( compgen -W "files" -- $cur ) )
;;
*)
- COMPREPLY=( $( compgen -W "-T -h --all --reduce --lines
--edge-labels $(quilt applied)" -- $cur ) )
+ COMPREPLY=( $( compgen -W "-T -h --all --reduce --lines
--edge-labels $(quilt applied 2>/dev/null)" -- $cur ) )
;;
esac
;;
@@ -236,10 +236,10 @@
COMPREPLY=( ${comprep...@]:-} $( compgen -W "-v -h" -- $cur ) )
;;
pop)
- COMPREPLY=( $( compgen -W "-a -f -R -q -v -h $(quilt applied)" --
$cur ) )
+ COMPREPLY=( $( compgen -W "-a -f -R -q -v -h $(quilt applied
2>/dev/null)" -- $cur ) )
;;
push)
- COMPREPLY=( $( compgen -W "-a -f -q -v -h --leave-rejects
--interactive --color $(quilt unapplied)" -- $cur ) )
+ COMPREPLY=( $( compgen -W "-a -f -q -v -h --leave-rejects
--interactive --color $(quilt unapplied 2>/dev/null)" -- $cur ) )
;;
refresh)
case $prev in
@@ -249,14 +249,14 @@
-U|-C)
;;
*)
- COMPREPLY=( $( compgen -W "-p -u -U -c -C -f -h $(quilt
applied) --no-timestamps --no-index --diffstat --sort --backup
--strip-trailing-whitespace" -- $cur ) )
+ COMPREPLY=( $( compgen -W "-p -u -U -c -C -f -h $(quilt applied
2>/dev/null) --no-timestamps --no-index --diffstat --sort --backup
--strip-trailing-whitespace" -- $cur ) )
;;
esac
;;
remove)
case $prev in
-P)
- COMPREPLY=( $( compgen -W "$(quilt applied)" -- $cur ) )
+ COMPREPLY=( $( compgen -W "$(quilt applied 2>/dev/null)" --
$cur ) )
;;
*)
_quilt_comfile