Article 6HSJW $variable broken with tab completion into \$variable

$variable broken with tab completion into \$variable

by
disk_bearing
from LinuxQuestions.org on (#6HSJW)
paths are fictionalized but accurate

in my .bashrc I have environment variables such as:
Code:shortcut="/home/me/startdir/"In Vi I can do the following and tab completion works perfectly.
Code::e $shortcut/In bash when I press tab,
Code:cd $shortcut/becomes
Code:cd \$shortcut/subdirand the slash added before $ breaks the command.

- Is there a way to prevent this?
- Is there a better way to approach faster navigation?

Thank you!
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments