bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How not to expand a environment variable when doing command complet


From: Peng Yu
Subject: Re: How not to expand a environment variable when doing command completion?
Date: Mon, 24 May 2010 11:54:28 -0500

On Sat, May 22, 2010 at 3:48 PM, Peng Yu <pengyu.ut@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

[Prev in Thread] Current Thread [Next in Thread]