Package: bash-completion Version: 1:1.3-1 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu raring ubuntu-patch
Forwarded from Launchpad (https://bugs.launchpad.net/bugs/1019217): If a file has a space in its name and either -df, -tf, or -xf are used on the file while the user is using tab completion, it fails to add an escape character, so 'tar' treats it as two separate files. Because of this, tab-completion can't properly be used with the options -cf, -df, or -tf with tar. This can be a very large problem for inexperienced users, as some won't know that escape characters are supposed to be used, if they even know what they are. -df: lists the differences between archives -tf: lists contents of archive -xf: extracts archive In Ubuntu Precise 12.04, the attached patch was used to achieve the following: * debian/patches/tar-spaces.patch: use escape characters with spaces for options -d, -t, and -x (LP: #1019217) Thanks for considering the patch. -- System Information: Debian Release: wheezy/sid APT prefers precise-updates APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 'precise-proposed'), (500, 'precise') Architecture: amd64 (x86_64) Kernel: Linux 3.2.24-kroqernel+ (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
=== modified file 'debian/changelog' === modified file 'debian/patches/series' --- debian/patches/series 2011-10-04 12:56:23 +0000 +++ debian/patches/series 2012-06-29 20:49:40 +0000 @@ -2,6 +2,7 @@ apt-get-changelog.patch disable-whitelist-on-fail.patch apt-get-download.patch +tar-spaces.patch 101_bash_completion.oga_ogv.patch 102_manpager.patch 103_colormake.patch === added file 'debian/patches/tar-spaces.patch' --- debian/patches/tar-spaces.patch 1970-01-01 00:00:00 +0000 +++ debian/patches/tar-spaces.patch 2012-06-29 20:42:30 +0000 @@ -0,0 +1,13 @@ +=== modified file 'completions/tar' +--- a/completions/tar 2011-02-06 22:00:58 +0000 ++++ b/completions/tar 2012-06-29 20:40:47 +0000 +@@ -14,7 +14,7 @@ + fi + + case ${COMP_WORDS[1]} in +- ?(-)[cr]*f) ++ ?(-)[cdrtx]*f) + _filedir + return 0 + ;; +