From d62e6cdff01c3c920c48cc7d52bde41f327df25b Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Fri, 14 Feb 2014 15:53:11 +0100 Subject: bash_completion: Simplify _quilt_comfile We don't need echo, we can call compgen directly. --- bash_completion | 2 +- quilt.changes | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bash_completion b/bash_completion index 852ab2d..a1e275f 100644 --- a/bash_completion +++ b/bash_completion @@ -86,7 +86,7 @@ fi _quilt_comfile() { COMPREPLY=( ${COMPREPLY[@]:-} $( compgen -f -- "$cur" ) ) - echo $( compgen -d -- "$cur" ) | while read d ; do + compgen -d -- "$cur" | while read d ; do COMPREPLY=( ${COMPREPLY[@]:-} "$d/" ) done } diff --git a/quilt.changes b/quilt.changes index d1b8819..3837e7e 100644 --- a/quilt.changes +++ b/quilt.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Feb 14 15:52:26 CET 2014 - jdelvare@suse.de + +- bash_completion: Simplify _quilt_comfile. + ------------------------------------------------------------------- Fri Feb 14 15:49:11 CET 2014 - jdelvare@suse.de -- cgit