[Bash-completion-commits] ./current r1330: Expand ~foo to dir name more eagerly to avoid quoting issues.
Ville Skyttä
ville.skytta at iki.fi
Fri Feb 6 21:57:05 UTC 2009
------------------------------------------------------------
revno: 1330
committer: Ville Skyttä <ville.skytta at iki.fi>
branch nick: current
timestamp: Fri 2009-02-06 23:57:05 +0200
message:
Expand ~foo to dir name more eagerly to avoid quoting issues.
modified:
bash_completion
debian/changelog
-------------- next part --------------
=== modified file 'bash_completion'
--- a/bash_completion 2009-02-06 21:26:34 +0000
+++ b/bash_completion 2009-02-06 21:57:05 +0000
@@ -399,6 +399,7 @@
elif [[ "$cur" == \~* ]]; then
cur=${cur#\~}
COMPREPLY=( $( compgen -P '~' -u $cur ) )
+ [ ${#COMPREPLY[@]} -eq 1 ] && eval COMPREPLY[0]=${COMPREPLY[0]}
return ${#COMPREPLY[@]}
fi
}
=== modified file 'debian/changelog'
--- a/debian/changelog 2009-02-06 21:26:34 +0000
+++ b/debian/changelog 2009-02-06 21:57:05 +0000
@@ -120,6 +120,7 @@
* Fix scp metacharacter escaping.
* Remove duplicate cpio completion, thanks to Freddy Vulto (Closes: #512823)
* Fix awk error in "modprobe -r /" completion (Closes: #512556).
+ * Expand ~foo to dir name more eagerly to avoid quoting issues.
[ Freddy Vulto ]
* Restored `_display()' completion for `display' by removing
More information about the Bash-completion-commits
mailing list