[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
@Ken Blackburn: Probably better to create a new bug report, even if you think this is a regression. (Probably link to this old bug report in the new one.) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/177243 Title: Bash command completion puts backslash in front of beginning dollar sign To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/177243/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
Upgraded to 20.04 and this issue has appeared. I've used variables DD=/mnt/Ddisk since I been using Ubuntu, at least 14.04. vi $DD/misc/filena worked consistently until 20.04.1 release. This release is the first time that this has occurred. It seems to have been unfixed in this release. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/177243 Title: Bash command completion puts backslash in front of beginning dollar sign To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/177243/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
I just saw this same issue in my Manjaro system today. I type cd $HOME/my hit tab and I get cd \$HOME/myHome My bash version is 4.3.46 I am uncertain as to what my bash-completion version is. I know that this is not a Manjaro problem site but was looking here for the real fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/177243 Title: Bash command completion puts backslash in front of beginning dollar sign To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/177243/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
Uninstall the bash-completion package give better results! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/177243 Title: Bash command completion puts backslash in front of beginning dollar sign To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/177243/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
I see this behavior on 12.04 with GNU bash, version 4.2.24(1)-release (x86_64-pc-linux-gnu) I get the same behavior even when I remove /etc/bash_completion and /etc/bash_completion.d repro: sudo mv /etc/bash_completion /etc/bash_completion.backup sudo mv /etc/bash_completion.d /etc/bash_completion.d.backup env -i HOME=$HOME DISPLAY=$DISPLAY xterm -e bash --login --noprofile --norc in new xterm: bash-4.2$ cd $HOMEtab bash-4.2$ cd $HOME cursor--- just adds a space bash-4.2$ cd $HOME/tab bash-4.2$ cd \$HOME/cursor --- annoying bug (adds backslash before $) bash-4.2$ xyz $HOME/tab bash-4.2$ xyz \$HOME/cursor --- same behavior for any command (not just cd) So maybe this is the bash default completion behavior? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/177243 Title: Bash command completion puts backslash in front of beginning dollar sign To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/177243/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
Note: in contrast, on Ubuntu 10.04 with GNU bash, version 4.1.5(1)-release (i486-pc-linux-gnu) I do not get the backslash: repro: sudo mv /etc/bash_completion /etc/bash_completion.backup sudo mv /etc/bash_completion.d /etc/bash_completion.d.backup env -i HOME=$HOME DISPLAY=$DISPLAY xterm -e bash --login --noprofile --norc in new xterm: bash-4.2$ cd $HOMEtab bash-4.2$ cd $HOME cursor --- just adds a space (same as Ubuntu 12.04) bash-4.2$ cd $HOME/tab bash-4.2$ cd /home/acorn/ --- no bug! expands as expected! bash-4.2$ xyz $HOME/tab bash-4.2$ xyz /home/acorn--- no bug! expands as expected! So maybe this is a regression in bash itself? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/177243 Title: Bash command completion puts backslash in front of beginning dollar sign To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/177243/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
I'm seeing this on Ubuntu 12.04. (I installed beta2 a couple of weeks ago and have applied all updates since then). I have commented out the entire body of /etc/profile.d/bash_completion.sh (due to a different issue). With a newly created account, no changes to any $HOME/.* files : $ uname -a Linux kvetch 3.2.0-23-generic-pae #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012 i686 i686 i386 GNU/Linux $ echo $BASH_VERSION 4.2.24(1)-release $ dpkg -l bash bash-completion [SNIP] ii bash 4.2-2ubuntu2 GNU Bourne Again SHell ii bash-completio 1:1.3-1ubuntu8 programmable completion for the bash shell $ echo $HOME/tab produces $ echo \$HOME/ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/177243 Title: Bash command completion puts backslash in front of beginning dollar sign To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/177243/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
More information: I see the same problem with bash-4.2 built from source. Restoring the original version of /etc/profile.d/bash_completion.sh doesn't change the behavior. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/177243 Title: Bash command completion puts backslash in front of beginning dollar sign To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/177243/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
** Changed in: bash-completion (Debian) Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/177243 Title: Bash command completion puts backslash in front of beginning dollar sign To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/177243/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
Reproduced on natty. Also all the problems described in #26 and #27 are still present in Lucid. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/177243 Title: Bash command completion puts backslash in front of beginning dollar sign -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
Reproduced on natty, ls $HOME/tab produces ls \$HOME/ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/177243 Title: Bash command completion puts backslash in front of beginning dollar sign -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
Hello, I am using ubuntu 9.04 and I did the change as gjzeus suggested: $ diff /etc/bash_completion /etc/bash_completion.backup 3171c3171 complete -F _cd $nospace cd --- complete -F _cd $nospace $filenames cd The problem reported here is solved but I observed a I found a side effect when cd is used to navigate through a chain of directories that just contain one directory. Lets say I have the following structure: example$ tree . `-- levelOne `-- levelTwo `-- levelThree Beofre this change if it was typed: example$ cd level [tab][tab][tab] the command was expanded itself by the shell (only if there was a single directory in the current directory) With this change, when tab is pressed it just displays the name of the directory that is in the current directory instead of auto completing the command: example$ cd levelOne [tab] levelOne Do you observe this behaviour as well? Thanks, Juan Garibay -- Bash command completion puts backslash in front of beginning dollar sign https://bugs.launchpad.net/bugs/177243 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
The backslash is gone in karmic, but the behavior is not fixed. With the karmic (and upstream debian) bash-completion package, environment variables still do not expand. $ cd $HOMEtab $HOME As others have noted, simply removing $filenames breaks the expansion. For me, the behavior of $dirnames in its place is at least tolerable (you must type a slash in order to get the path to expand). I would consider this bug still open. Until it gets fixed properly, the workaround is easy to apply... Workaround diff for the karmic bash_completion: --- /etc/bash_completion2009-06-01 06:33:54.0 -0400 +++ bash_completion 2009-07-20 10:52:21.0 -0400 @@ -3236,9 +3236,9 @@ return 0 } if shopt -q cdable_vars; then -complete -v -F _cd $nospace cd +complete -v -F _cd $nospace $dirnames cd else -complete -F _cd $nospace cd +complete -F _cd $nospace $dirnames cd fi # a wrapper method for the next one, when the offset is unknown -- Bash command completion puts backslash in front of beginning dollar sign https://bugs.launchpad.net/bugs/177243 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
Same here as Xeno on multiple updated 9.04 systems. The comment out trick seems to work. -- Bash command completion puts backslash in front of beginning dollar sign https://bugs.launchpad.net/bugs/177243 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
Well, that may be fixed, but my latest upgrade on my System76 laptop sure STILL has the problem. -- Bash command completion puts backslash in front of beginning dollar sign https://bugs.launchpad.net/bugs/177243 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
And my Ubuntu Server 9.04 with latest updates and right after a reboot to boot: $ cd $TMtab $ cd \$TMP -bash: cd: $TMP: No such file or directory $ uname -a Linux leopard 2.6.28-11-server #42-Ubuntu SMP Fri Apr 17 02:48:10 UTC 2009 i686 GNU/Linux So, I don't know where the fix is, but I am not seeing it yet. -- Bash command completion puts backslash in front of beginning dollar sign https://bugs.launchpad.net/bugs/177243 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
Fixed in bash-completion 1:1.0-1, now in karmic: - fixed completion of environment variables, thanks to Morita Sho (Closes: #272660) ** Changed in: bash-completion (Ubuntu) Status: Triaged = Fix Released -- Bash command completion puts backslash in front of beginning dollar sign https://bugs.launchpad.net/bugs/177243 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
** Changed in: bash-completion (Debian) Status: Unknown = Fix Committed -- Bash command completion puts backslash in front of beginning dollar sign https://bugs.launchpad.net/bugs/177243 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
The upstream Debian bug has a patch which is described as reimplementing the -f (aka -o filenames) behavior on an as-needed basis. I haven't tried it, but the description sounds like it could be worth considering while Debian continues to ponder this case. -- Bash command completion puts backslash in front of beginning dollar sign https://bugs.launchpad.net/bugs/177243 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
** Bug watch added: Debian Bug tracker #272660 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=272660 ** Also affects: bash-completion (Debian) via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=272660 Importance: Unknown Status: Unknown -- Bash command completion puts backslash in front of beginning dollar sign https://bugs.launchpad.net/bugs/177243 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
** Changed in: bash-completion (Ubuntu) Assignee: Mika Fischer (zoop) = (unassigned) -- Bash command completion puts backslash in front of beginning dollar sign https://bugs.launchpad.net/bugs/177243 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
Yes. I think it's bug of bash_completion in /etc. If you turn it off in your .bashrc, no this problem. Once you turn it on, it happens. I'm running Ubuntu 8.04.1 Hardy on Dell XPS M1530. I fix this one by editing this file. If you're not interested in seeing the details, please download the file and sudo cp /etc/bash_completion /etc/bash_completion_bak sudo cp bash_completion /etc/bash_completion exec bash Also you can do it by yourself open /etc/bash_completion find complete -F _cd $nospace $filenames cd remove $filenames save it. That's it. I don't know if it causes any regression. If so, please post it. Thanks a lot. ** Attachment added: Fixed version of bash_completion http://launchpadlibrarian.net/17313392/bash_completion -- Bash command completion puts backslash in front of beginning dollar sign https://bugs.launchpad.net/bugs/177243 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
Sorry guys. I just find a bug for fixed version. ex: directoryA\ B/ cd A{tab} cd A B so actually it remove backslash before any special character. Stilll working on it. -- Bash command completion puts backslash in front of beginning dollar sign https://bugs.launchpad.net/bugs/177243 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
So far, my fix is to comment complete -F _cd $nospace $filenames cd in /etc/bash_completion. Hope it will work. -- Bash command completion puts backslash in front of beginning dollar sign https://bugs.launchpad.net/bugs/177243 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
** Changed in: bash-completion (Ubuntu) Importance: Undecided = Medium ** Changed in: bash-completion (Ubuntu) Status: Confirmed = Triaged -- Bash command completion puts backslash in front of beginning dollar sign https://bugs.launchpad.net/bugs/177243 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
I first got this on UbuntuME under Feisty, but now I'm also seeing it on Server and regular Desktop, so presumably now everybody has the disease. I wish someone had listened earlier. Attack of the killer backslashes! -- Bash command completion puts backslash in front of beginning dollar sign https://bugs.launchpad.net/bugs/177243 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
I had to revert the fix for now because it caused a regression :( ** Changed in: bash-completion (Ubuntu) Status: Fix Committed = Confirmed -- Bash command completion puts backslash in front of beginning dollar sign https://bugs.launchpad.net/bugs/177243 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
I've prepared an updated package in my PPA which should fix the bug you reported. If you're using hardy I'd appreciate it if you could test it and report whether your bug is indeed fixed and also whether you experienced any other regressions. You can get the package from here: http://launchpadlibrarian.net/13042048/bash-completion_20060301-3ubuntu2%7Eppa2_all.deb To install it: wget http://launchpadlibrarian.net/13042048/bash-completion_20060301-3ubuntu2%7Eppa2_all.deb sudo dpkg -i dpkg -i bash-completion_20060301-3ubuntu2~ppa2_all.deb To go back to the original package, do this: sudo aptitude install bash-completion/hardy If I don't get reports of regressions I'll try to get this version into hardy. Thanks for your help! ** Changed in: bash-completion (Ubuntu) Status: In Progress = Fix Committed -- Bash command completion puts backslash in front of beginning dollar sign https://bugs.launchpad.net/bugs/177243 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 177243] Re: Bash command completion puts backslash in front of beginning dollar sign
** Changed in: bash-completion (Ubuntu) Assignee: (unassigned) = Mika Fischer (zoop) Status: Confirmed = In Progress -- Bash command completion puts backslash in front of beginning dollar sign https://bugs.launchpad.net/bugs/177243 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs