[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash tab variable expansion question?
From: |
Roger |
Subject: |
Re: bash tab variable expansion question? |
Date: |
Tue, 6 Sep 2011 19:39:20 -0800 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
> On Mon, Sep 05, 2011 at 02:59:20AM -0800, Roger wrote:
>> On Mon, Sep 05, 2011 at 12:40:02AM -0800, Roger wrote:
>>>The option works, as far as I can see.
>>>"ls $HOM" completes to "ls $HOME " instead of "ls $HOME/", though.
>>
>>
>>Weird.
>>
>>On Gentoo here, "echo $HO" does complete to "echo $HOME", but "ls $HO"
>>fails to complete here.
>>
>>(It is enabled here "$ eselect bashcomp list |grep coreutils". Just to
>>verify, I just wiped $HOME/.bash_completion.d/ and renabled everything and
>>still no completion using /bin/ls.)
>
>Here's what I have defined for complete:
>
>$ complete |grep ls
>complete -o default -F _longopt ls
Thanks Chet. The following does give me Variable Bash Completion:
complete -o bashdefault -F _longopt ls
--
Roger
http://rogerx.freeshell.org/
Re: bash tab variable expansion question?, Peter Kruse, 2011/09/15