2012-06-29 09:59:58 |
Otus |
bug |
|
|
added bug |
2012-06-29 10:11:14 |
Otus |
attachment added |
|
0001-Fix-tar-xf-completion-with-spaces-in-file-names.patch https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1019217/+attachment/3207661/+files/0001-Fix-tar-xf-completion-with-spaces-in-file-names.patch |
|
2012-06-29 12:25:00 |
Ubuntu Foundations Team Bug Bot |
tags |
amd64 apport-bug precise |
amd64 apport-bug patch precise |
|
2012-06-29 12:25:08 |
Ubuntu Foundations Team Bug Bot |
bug |
|
|
added subscriber Ubuntu Review Team |
2012-06-29 20:33:56 |
Launchpad Janitor |
bash-completion (Ubuntu): status |
New |
Confirmed |
|
2012-06-29 20:54:48 |
Launchpad Janitor |
branch linked |
|
lp:~kroq-gar78/ubuntu/precise/bash-completion/fix-1019217 |
|
2012-06-30 05:34:11 |
Aditya V |
bug |
|
|
added subscriber kroq-gar78 |
2012-06-30 05:36:24 |
Aditya V |
attachment added |
|
Debdiff to support spaces in file names for -d, -t, and -x https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1019217/+attachment/3208455/+files/bash-completion_1019217.debdiff |
|
2012-07-18 22:43:13 |
Brian Murray |
bash-completion (Ubuntu): importance |
Undecided |
Medium |
|
2012-07-18 22:43:13 |
Brian Murray |
bash-completion (Ubuntu): status |
Confirmed |
In Progress |
|
2012-07-18 22:43:13 |
Brian Murray |
bash-completion (Ubuntu): assignee |
|
Brian Murray (brian-murray) |
|
2012-07-18 22:55:31 |
Launchpad Janitor |
bash-completion (Ubuntu): status |
In Progress |
Fix Released |
|
2012-07-18 23:17:04 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/bash-completion |
|
2012-07-19 20:42:29 |
Aditya V |
bug task added |
|
bash-completion (Debian) |
|
2012-07-19 20:43:21 |
Aditya V |
bash-completion (Debian): assignee |
|
kroq-gar78 (kroq-gar78) |
|
2012-07-19 20:44:42 |
Aditya V |
summary |
Tab completion with tar -xf doesn't support spaces in file name |
[SRU] Tab completion with tar -cf, -df, and -tx don't support spaces in file name |
|
2012-07-19 20:52:27 |
Aditya V |
description |
This works:
$ touch test\ file
$ tar -cf te<tab>
$ tar -cf test\ file
But this does not:
$ touch test\ file
$ tar -xf te<tab>
$ tar -xf test file
(No backslash.)
Even:
$ touch test\ file
$ tar -xf test\ file<tab>
$ tar -xf test file
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: bash-completion 1:1.3-1ubuntu8
ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
Uname: Linux 3.2.0-26-generic x86_64
ApportVersion: 2.0.1-0ubuntu10
Architecture: amd64
Date: Fri Jun 29 12:55:34 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120319)
PackageArchitecture: all
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: bash-completion
UpgradeStatus: No upgrade log present (probably fresh install) |
[Impact]
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.
-df: lists the differences between archives
-tf: lists contents of archive
-xf: extracts archive
[Test Case]
1. Create the file 'test file': touch test\ file
2. Press tab after typing this: tar -cf te
It should show a "\" as an escape character preceding the space, allowing tar to correctly interpret the name as one file, not two
Result: tar -cf test\ file
[Regression Potential]
This works:
$ touch test\ file
$ tar -cf te<tab>
$ tar -cf test\ file
But this does not:
$ touch test\ file
$ tar -xf te<tab>
$ tar -xf test file
(No backslash.)
Even:
$ touch test\ file
$ tar -xf test\ file<tab>
$ tar -xf test file
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: bash-completion 1:1.3-1ubuntu8
ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
Uname: Linux 3.2.0-26-generic x86_64
ApportVersion: 2.0.1-0ubuntu10
Architecture: amd64
Date: Fri Jun 29 12:55:34 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120319)
PackageArchitecture: all
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: bash-completion
UpgradeStatus: No upgrade log present (probably fresh install) |
|
2012-07-19 20:54:42 |
Brian Murray |
nominated for series |
|
Ubuntu Precise |
|
2012-07-19 20:54:42 |
Brian Murray |
bug task added |
|
bash-completion (Ubuntu Precise) |
|
2012-07-19 20:54:52 |
Brian Murray |
bash-completion (Ubuntu Precise): importance |
Undecided |
Medium |
|
2012-07-19 20:58:27 |
Aditya V |
description |
[Impact]
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.
-df: lists the differences between archives
-tf: lists contents of archive
-xf: extracts archive
[Test Case]
1. Create the file 'test file': touch test\ file
2. Press tab after typing this: tar -cf te
It should show a "\" as an escape character preceding the space, allowing tar to correctly interpret the name as one file, not two
Result: tar -cf test\ file
[Regression Potential]
This works:
$ touch test\ file
$ tar -cf te<tab>
$ tar -cf test\ file
But this does not:
$ touch test\ file
$ tar -xf te<tab>
$ tar -xf test file
(No backslash.)
Even:
$ touch test\ file
$ tar -xf test\ file<tab>
$ tar -xf test file
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: bash-completion 1:1.3-1ubuntu8
ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
Uname: Linux 3.2.0-26-generic x86_64
ApportVersion: 2.0.1-0ubuntu10
Architecture: amd64
Date: Fri Jun 29 12:55:34 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120319)
PackageArchitecture: all
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: bash-completion
UpgradeStatus: No upgrade log present (probably fresh install) |
[Impact]
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.
-df: lists the differences between archives
-tf: lists contents of archive
-xf: extracts archive
[Test Case]
1. Create the file 'test file': touch test\ file
2. Press tab after typing this: tar -cf test
It should show a "\" as an escape character preceding the space, allowing tar to correctly interpret the name as one file, not two
Result: tar -cf test\ file
3. Press tab after typing this: tar -df test
It should then show "tar -df test file", making tar interpret the archive as 'test' and 'file' as another argument.
Intended result (after applying patch): tar -df test\ file
4. Press tab after typing this: tar -tf test
It should then show "tar -tf test file", making tar interpret the archive as 'test' and 'file' as another argument.
Intended result (after applying patch): tar -tf test\ file
5. Press tab after typing this: tar -xf test
It should then show "tar -xf test file", making tar interpret the archive as 'test' and 'file' as another argument.
Intended result (after applying patch): tar -xf test\ file
Note that even pressing tab after "tar -xf test\ file" will result in "tar -xf test file"
[Regression Potential]
Small, as only one lines was changed, and only three characters were added to it ('d','t', and 'x' - each of the arguments that weren't working).
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: bash-completion 1:1.3-1ubuntu8
ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
Uname: Linux 3.2.0-26-generic x86_64
ApportVersion: 2.0.1-0ubuntu10
Architecture: amd64
Date: Fri Jun 29 12:55:34 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120319)
PackageArchitecture: all
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: bash-completion
UpgradeStatus: No upgrade log present (probably fresh install) |
|
2012-07-19 20:58:37 |
Aditya V |
summary |
[SRU] Tab completion with tar -cf, -df, and -tx don't support spaces in file name |
[SRU] Tab completion with tar -df, -tf, and -xf don't support spaces in file name |
|
2012-07-19 20:59:44 |
Aditya V |
bash-completion (Ubuntu Precise): status |
New |
Confirmed |
|
2012-07-19 21:03:30 |
Aditya V |
description |
[Impact]
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.
-df: lists the differences between archives
-tf: lists contents of archive
-xf: extracts archive
[Test Case]
1. Create the file 'test file': touch test\ file
2. Press tab after typing this: tar -cf test
It should show a "\" as an escape character preceding the space, allowing tar to correctly interpret the name as one file, not two
Result: tar -cf test\ file
3. Press tab after typing this: tar -df test
It should then show "tar -df test file", making tar interpret the archive as 'test' and 'file' as another argument.
Intended result (after applying patch): tar -df test\ file
4. Press tab after typing this: tar -tf test
It should then show "tar -tf test file", making tar interpret the archive as 'test' and 'file' as another argument.
Intended result (after applying patch): tar -tf test\ file
5. Press tab after typing this: tar -xf test
It should then show "tar -xf test file", making tar interpret the archive as 'test' and 'file' as another argument.
Intended result (after applying patch): tar -xf test\ file
Note that even pressing tab after "tar -xf test\ file" will result in "tar -xf test file"
[Regression Potential]
Small, as only one lines was changed, and only three characters were added to it ('d','t', and 'x' - each of the arguments that weren't working).
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: bash-completion 1:1.3-1ubuntu8
ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
Uname: Linux 3.2.0-26-generic x86_64
ApportVersion: 2.0.1-0ubuntu10
Architecture: amd64
Date: Fri Jun 29 12:55:34 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120319)
PackageArchitecture: all
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: bash-completion
UpgradeStatus: No upgrade log present (probably fresh install) |
[Impact]
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
[Development Fix]
In the file "completions/tar", the characters 'd', 't', and 'x' were added to the regex (?) checking for the options passed to tar.
[Test Case]
1. Create the file 'test file': touch test\ file
2. Press tab after typing this: tar -cf test
It should show a "\" as an escape character preceding the space, allowing tar to correctly interpret the name as one file, not two
Result: tar -cf test\ file
3. Press tab after typing this: tar -df test
It should then show "tar -df test file", making tar interpret the archive as 'test' and 'file' as another argument.
Intended result (after applying patch): tar -df test\ file
4. Press tab after typing this: tar -tf test
It should then show "tar -tf test file", making tar interpret the archive as 'test' and 'file' as another argument.
Intended result (after applying patch): tar -tf test\ file
5. Press tab after typing this: tar -xf test
It should then show "tar -xf test file", making tar interpret the archive as 'test' and 'file' as another argument.
Intended result (after applying patch): tar -xf test\ file
Note that even pressing tab after "tar -xf test\ file" will result in "tar -xf test file"
[Regression Potential]
Small, as only one lines was changed, and only three characters were added to it ('d','t', and 'x' - each of the arguments that weren't working).
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: bash-completion 1:1.3-1ubuntu8
ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
Uname: Linux 3.2.0-26-generic x86_64
ApportVersion: 2.0.1-0ubuntu10
Architecture: amd64
Date: Fri Jun 29 12:55:34 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120319)
PackageArchitecture: all
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: bash-completion
UpgradeStatus: No upgrade log present (probably fresh install) |
|
2012-07-19 21:17:07 |
Aditya V |
description |
[Impact]
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
[Development Fix]
In the file "completions/tar", the characters 'd', 't', and 'x' were added to the regex (?) checking for the options passed to tar.
[Test Case]
1. Create the file 'test file': touch test\ file
2. Press tab after typing this: tar -cf test
It should show a "\" as an escape character preceding the space, allowing tar to correctly interpret the name as one file, not two
Result: tar -cf test\ file
3. Press tab after typing this: tar -df test
It should then show "tar -df test file", making tar interpret the archive as 'test' and 'file' as another argument.
Intended result (after applying patch): tar -df test\ file
4. Press tab after typing this: tar -tf test
It should then show "tar -tf test file", making tar interpret the archive as 'test' and 'file' as another argument.
Intended result (after applying patch): tar -tf test\ file
5. Press tab after typing this: tar -xf test
It should then show "tar -xf test file", making tar interpret the archive as 'test' and 'file' as another argument.
Intended result (after applying patch): tar -xf test\ file
Note that even pressing tab after "tar -xf test\ file" will result in "tar -xf test file"
[Regression Potential]
Small, as only one lines was changed, and only three characters were added to it ('d','t', and 'x' - each of the arguments that weren't working).
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: bash-completion 1:1.3-1ubuntu8
ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
Uname: Linux 3.2.0-26-generic x86_64
ApportVersion: 2.0.1-0ubuntu10
Architecture: amd64
Date: Fri Jun 29 12:55:34 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120319)
PackageArchitecture: all
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: bash-completion
UpgradeStatus: No upgrade log present (probably fresh install) |
[Impact]
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
[Stable Fix]
Running this command will fix the problem: "sed -i 's/\?(\-)\[cr\]\*f/\?(\-)\[cdrtx\]\*f/g' /etc/bash_completion.d/tar" (run without quotes)
[Development Fix]
In the file "completions/tar", the characters 'd', 't', and 'x' were added to the regex (?) checking for the options passed to tar.
[Test Case]
1. Create the file 'test file': touch test\ file
2. Press tab after typing this: tar -cf test
It should show a "\" as an escape character preceding the space, allowing tar to correctly interpret the name as one file, not two
Result: tar -cf test\ file
3. Press tab after typing this: tar -df test
It should then show "tar -df test file", making tar interpret the archive as 'test' and 'file' as another argument.
Intended result (after applying patch): tar -df test\ file
4. Press tab after typing this: tar -tf test
It should then show "tar -tf test file", making tar interpret the archive as 'test' and 'file' as another argument.
Intended result (after applying patch): tar -tf test\ file
5. Press tab after typing this: tar -xf test
It should then show "tar -xf test file", making tar interpret the archive as 'test' and 'file' as another argument.
Intended result (after applying patch): tar -xf test\ file
Note that even pressing tab after "tar -xf test\ file" will result in "tar -xf test file"
[Regression Potential]
Small, as only one lines was changed, and only three characters were added to it ('d','t', and 'x' - each of the arguments that weren't working).
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: bash-completion 1:1.3-1ubuntu8
ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
Uname: Linux 3.2.0-26-generic x86_64
ApportVersion: 2.0.1-0ubuntu10
Architecture: amd64
Date: Fri Jun 29 12:55:34 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120319)
PackageArchitecture: all
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: bash-completion
UpgradeStatus: No upgrade log present (probably fresh install) |
|
2012-07-25 01:19:50 |
Aditya V |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2012-07-25 01:19:56 |
Aditya V |
bash-completion (Ubuntu Precise): assignee |
|
kroq-gar78 (kroq-gar78) |
|
2013-03-22 23:52:56 |
Aditya V |
bug watch added |
|
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=703739 |
|
2013-03-22 23:52:56 |
Aditya V |
bash-completion (Debian): importance |
Undecided |
Unknown |
|
2013-03-22 23:52:56 |
Aditya V |
bash-completion (Debian): status |
New |
Unknown |
|
2013-03-22 23:52:56 |
Aditya V |
bash-completion (Debian): remote watch |
|
Debian Bug tracker #703739 |
|
2013-03-22 23:52:56 |
Aditya V |
bash-completion (Debian): assignee |
kroq-gar78 (kroq-gar78) |
|
|
2013-03-23 00:43:01 |
Bug Watch Updater |
bash-completion (Debian): status |
Unknown |
New |
|
2013-05-10 19:06:24 |
Dave Walker |
bash-completion (Ubuntu Precise): status |
Confirmed |
Fix Committed |
|
2013-05-10 19:06:29 |
Dave Walker |
bug |
|
|
added subscriber SRU Verification |
2013-05-10 19:06:31 |
Dave Walker |
tags |
amd64 apport-bug patch precise |
amd64 apport-bug patch precise verification-needed |
|
2013-05-10 19:38:14 |
Launchpad Janitor |
branch linked |
|
lp:~ubuntu-branches/ubuntu/precise/bash-completion/precise-proposed |
|
2013-05-10 22:33:17 |
Simon Déziel |
tags |
amd64 apport-bug patch precise verification-needed |
amd64 apport-bug patch precise verification-done |
|
2013-05-19 22:39:35 |
Colin Watson |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2013-05-19 22:40:22 |
Launchpad Janitor |
bash-completion (Ubuntu Precise): status |
Fix Committed |
Fix Released |
|
2018-11-22 20:19:23 |
Bug Watch Updater |
bash-completion (Debian): status |
New |
Fix Released |
|