Pressing TAB to complete a word escapes any "$" env var references on the line
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
On a command line in a terminal shell, with Bash, I typed a line like this:
$ ls $SOMEVAR/
(where the var "SOMEVAR" is defined, and represents a directory that has a "somedir" directory, and there is one or more files or directories in "somedir" that begin with "abc") and then pressed TAB, it produced this:
$ ls \$SOMEVAR/
(Added the backslash.)
If I then continue to try completion with TAB, it doesn't do anything, because the env var is now escaped. I now have to go back to the beginning of the env var reference and remove the backslash, and then go back to the end to try completion again.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: bash 4.2-2ubuntu2
ProcVersionSign
Uname: Linux 3.2.0-24-generic x86_64
ApportVersion: 2.0.1-0ubuntu5
Architecture: amd64
Date: Thu May 24 10:46:32 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
ProcEnviron:
LANGUAGE=en_CA:en
PATH=(custom, no user)
LANG=en_CA.UTF-8
SHELL=/bin/bash
SourcePackage: bash
UpgradeStatus: No upgrade log present (probably fresh install)
Status changed to 'Confirmed' because the bug affects multiple users.