[Bash-completion-devel] Bug#703739: tar: completion with -df, -tf, and -xf don't support spaces in file name
Aditya Vaidya
kroq.gar78 at gmail.com
Fri Mar 22 23:45:36 UTC 2013
Package: bash-completion
Version: 1:1.3-1
Severity: normal
Tags: patch
User: ubuntu-devel at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bash-completion_1:1.3-1ubuntu9.debdiff
Type: text/x-diff
Size: 877 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20130322/a49962ea/attachment.diff>
More information about the Bash-completion-devel
mailing list