[Bash-completion-commits] ./current r1104: fixes _get_cword() function to properly handle filenames with whitespaces (Closes: #394636, #468254, #474094)

David Paleino d.paleino at gmail.com
Sun May 11 15:58:00 UTC 2008


------------------------------------------------------------
revno: 1104
committer: David Paleino <d.paleino at gmail.com>
branch nick: bash-completion
timestamp: Sun 2008-05-11 17:58:00 +0200
message:
  fixes _get_cword() function to properly handle filenames with whitespaces (Closes: #394636, #468254, #474094)
modified:
  bash_completion
  debian/changelog
-------------- next part --------------
=== modified file 'bash_completion'
--- a/bash_completion	2008-05-11 14:47:01 +0000
+++ b/bash_completion	2008-05-11 15:58:00 +0000
@@ -222,7 +222,7 @@
 	done
 
 	cur=${cur:$word_start}
-	echo $cur
+	echo "$cur"
 }
 
 # This function performs file and directory completion. It's better than

=== modified file 'debian/changelog'
--- a/debian/changelog	2008-05-11 15:30:41 +0000
+++ b/debian/changelog	2008-05-11 15:58:00 +0000
@@ -19,6 +19,8 @@
       (Closes: #455510)
     - fixes Perl completion (Closes: #470742)
     - fixes get_cword -> _get_cword typo (Closes: #478596)
+    - fixes _get_cword() function to properly handle filenames with 
+      whitespaces (Closes: #394636, #468254, #474094)
   * debian/copyright - now in a fancier machine-parsable format.
   * debian/control:
     - added myself to Uploaders
@@ -45,7 +47,7 @@
   * Update apt-get completion to include the flag "--no-install-recommends"
     (Closes: #475242)
 
- -- David Paleino <d.paleino at gmail.com>  Sun, 11 May 2008 17:29:52 +0200
+ -- David Paleino <d.paleino at gmail.com>  Sun, 11 May 2008 17:49:06 +0200
 
 bash-completion (20060301-4) unstable; urgency=low
 



More information about the Bash-completion-commits mailing list