[Bash-completion-commits] ./current r1179: Fix missing completion for "-n" and "-e" (we were using echo, now
David Paleino
d.paleino at gmail.com
Sun Sep 7 08:43:23 UTC 2008
------------------------------------------------------------
revno: 1179
committer: David Paleino <d.paleino at gmail.com>
branch nick: current
timestamp: Sun 2008-09-07 10:43:23 +0200
message:
Fix missing completion for "-n" and "-e" (we were using echo, now
using printf) (thanks to Morita Sho) (Closes: #498105)
modified:
bash_completion
debian/changelog
-------------- next part --------------
=== modified file 'bash_completion'
--- a/bash_completion 2008-09-07 08:35:59 +0000
+++ b/bash_completion 2008-09-07 08:43:23 +0000
@@ -228,7 +228,7 @@
_get_cword()
{
if [[ "${#COMP_WORDS[COMP_CWORD]}" -eq 0 ]] || [[ "$COMP_POINT" == "${#COMP_LINE}" ]]; then
- echo "${COMP_WORDS[COMP_CWORD]}"
+ printf "%s" "${COMP_WORDS[COMP_CWORD]}"
else
local i
local cur="$COMP_LINE"
@@ -249,9 +249,9 @@
if [[ "${COMP_WORDS[COMP_CWORD]:0:${#cur}}" != "$cur" ]]; then
# We messed up! At least return the whole word so things
# keep working
- echo "${COMP_WORDS[COMP_CWORD]}"
+ printf "%s" "${COMP_WORDS[COMP_CWORD]}"
else
- echo "${cur:0:$index}"
+ printf "%s" "${cur:0:$index}"
fi
fi
}
=== modified file 'debian/changelog'
--- a/debian/changelog 2008-09-07 08:35:59 +0000
+++ b/debian/changelog 2008-09-07 08:43:23 +0000
@@ -17,9 +17,11 @@
(Closes: #361535)
* Fix bug with gdb (and find) when an empty directory is in $PATH
(thanks to Morita Sho) (Closes: #497597)
+ * Fix missing completion for "-n" and "-e" (we were using echo, now
+ using printf) (thanks to Morita Sho) (Closes: #498105)
* debian/links fixed (Closes: #494292)
- -- David Paleino <d.paleino at gmail.com> Sun, 07 Sep 2008 10:32:07 +0200
+ -- David Paleino <d.paleino at gmail.com> Sun, 07 Sep 2008 10:41:48 +0200
bash-completion (20080705) unstable; urgency=low
More information about the Bash-completion-commits
mailing list