Use shopt to reference bash paths as variables


/ Published in: Bash
Save to your folder(s)

Check out the bash command 'shopt -s cdable_vars' From the man bash page: If set, an argument to the cd builtin command that is not a directory is assumed to be the name of a variable whose value is the directory to change to.

URL: http://www.macosxhints.com/article.php?story=2005031814311425

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.