Results 1 to 1 of 1
In an sh shell, I have an environment variable say APACHE=/etc/apache2/ If I type "cd $APACHE/" then tab, it will complete to "cd /etc/apache2" However if I try the same ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-16-2006 #1
- Join Date
- Sep 2006
bash directory completion
If I type "cd $APACHE/" then tab, it will complete to "cd /etc/apache2"
However if I try the same thing in a bash shell it won't complete. Instead it just gives "cd \$APACHE".
The problem seems to be with using the cd command. If I type "$APACHE" and then tab, it completes to "/etc/apache2/" as expected.
Is there a way of setting environment varaibles in BASH which I'm missing. I'd be greatful for any help. Thanks.