I have to concur with Kiko Piris, but I'd even go further, and remove
unneeded characters from the [] construct: the quote characters, both
single and double, appear twice in the same [] construct, and I dont
think this has any useful purpose or effect. I'd therefore go for:
--- /etc/bash_completion~ 2005-12-10 01:03:54.000000000 +0100
+++ /etc/bash_completion 2005-12-11 13:18:13.000000000 +0100
@@ -2475,7 +2475,7 @@
fi
# append any available aliases from config files
if [ [EMAIL PROTECTED] -gt 0 ] && [ -n "$aliases" ]; then
- hosts=$( compgen -W "$( sed -ne "s/^[Hh][Oo][Ss][Tt]["$'\t
'"]*\([^*?]*\)$/\1/p" [EMAIL PROTECTED] )" -- $ocur )
+ hosts=$( compgen -W "$( sed -ne "s/^[Hh][Oo][Ss][Tt][\"$'\t
]*\([^*?]*\)$/\1/p" [EMAIL PROTECTED] )" -- $ocur )
COMPREPLY=( [EMAIL PROTECTED] $hosts )
fi
...which works for me. Similar simplifications could apply to the
previous chunk of the patch (global_kh and user_kh), but since it
ain't exactly broken, feel free not to fix it.
Roland.
--
Roland Mas
Au royaume des aveugles, les borgnes n'ont qu'un oeil.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]