Please, put $cur in double quotes in the last 'echo' in _get_cword:
====================================================================
--- /usr/share/bash/bash_completion     2008-03-23 01:09:58.000000000 +0200
+++ /etc/bash_completion        2008-03-23 20:56:42.000000000 +0200
@@ -211,7 +211,7 @@
 
 
        cur=${cur:$word_start}
-       echo $cur
+       echo "$cur"
 }


====================================================================

Otherwise, spaces at the end of the completion word get dropped:
% touch 'I first'
% touch 'II second'
% ls I\ <tab>           # won't be completed to 'I first'




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to