On Sat, May 22, 2010 at 3:48 PM, Peng Yu <pengyu...@gmail.com> wrote:
> When I type 'cd $HOME/.<TAB>', bash will expand the command to 'cd
> /home/my_user_name/.'. Would you please let me know how to let bash
> expand the environment variable?

I mean 'NOT to let bash ...'. Also, I forget to mention that
/etc/bash-completion is not sourced in my .bashrc and I have make sure
that it is not sourced anywhere before .bashrc. Therefore, this is a
question regarding bash. Could somebody let me know how to not expand
the variable.

I also tried 'python $SOME_VARIABLE/<TAB>', where $SOME_VARIABLE is
set to a directory. Wired enough, this time $SOME_VARIABLE is not
expanded at all, neither any completion to any files under the
directory $SOME_VARIABLE.

BTW, my bash is of version 4.1.0(2)-release (x86_64-unknown-linux-gnu).

-- 
Regards,
Peng

Reply via email to