From bb511b1c4285c31945e176b37b0513da9a0b42fd Mon Sep 17 00:00:00 2001 From: David Paleino Date: Sun, 11 May 2008 17:58:00 +0200 Subject: [PATCH] fixes _get_cword() function to properly handle filenames with whitespaces (Closes: #394636, #468254, #474094) --- bash_completion | 2 +- debian/changelog | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bash_completion b/bash_completion index 29fc7875..ea47721d 100644 --- a/bash_completion +++ b/bash_completion @@ -222,7 +222,7 @@ _get_cword() done cur=${cur:$word_start} - echo $cur + echo "$cur" } # This function performs file and directory completion. It's better than diff --git a/debian/changelog b/debian/changelog index d5ca7779..4fd62061 100644 --- a/debian/changelog +++ b/debian/changelog @@ -19,6 +19,8 @@ bash-completion (20080501-1) UNRELEASED; urgency=low (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 @@ bash-completion (20080501-1) UNRELEASED; urgency=low * Update apt-get completion to include the flag "--no-install-recommends" (Closes: #475242) - -- David Paleino Sun, 11 May 2008 17:29:52 +0200 + -- David Paleino Sun, 11 May 2008 17:49:06 +0200 bash-completion (20060301-4) unstable; urgency=low