Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I think I may not have described the problem clearly. The problem is that bash escapes the dollar sign of an environment variable when I use the cd command. $SOME_DIR was just an example. It could be any variable.
To explain again, say the environment variable points to some directory
Now if I type 'cd $SOME_D' and hit tab for autocompletion, I get this
(note the slash appended by the shell) instead of this
So my question is, how I can modify shell's autocompletion so it doesn't escape the dollar sign with a slash?
AFAIK, only external commands (config files etc.) have man pages. Because it is a bashbuilt-in, complete is documented inside the (incredibly long) bash man page. That is why I gave you the following search phrases:
Originally Posted by archtoad6
Run man bash, then search for:
Each will take to an appropriate place in the bash man page. Use the whole phrase, I designed it to get you to the exact place I intended.
is only supposed to present a reminder on the command line when you need to jog your memory.