diff options
author | Jean Delvare <jdelvare@suse.de> | 2014-02-14 15:53:11 +0100 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2014-02-14 15:53:11 +0100 |
commit | d62e6cdff01c3c920c48cc7d52bde41f327df25b (patch) | |
tree | 244f50e456bd83f0f3d487e7a582266d4bb5e925 | |
parent | 4d8358ae52ce574920c7f3aba7453f305fabf1ba (diff) | |
download | quilt-d62e6cdff01c3c920c48cc7d52bde41f327df25b.tar.gz |
bash_completion: Simplify _quilt_comfile
We don't need echo, we can call compgen directly.
-rw-r--r-- | bash_completion | 2 | ||||
-rw-r--r-- | quilt.changes | 5 |
2 files changed, 6 insertions, 1 deletions
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,4 +1,9 @@ ------------------------------------------------------------------- +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 - files: Return nothing if there are no files. |