bug-bash
[Top][All Lists]
Advanced

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

Re: How to change the command completion behavior in bash


From: Chet Ramey
Subject: Re: How to change the command completion behavior in bash
Date: Tue, 17 Nov 2009 14:15:19 -0500
User-agent: Thunderbird 2.0.0.23 (Macintosh/20090812)

Peng Yu wrote:
> On Mon, Nov 16, 2009 at 8:30 AM, Chet Ramey <chet.ramey@case.edu> wrote:
>>> If I have the following in the command line,
>>>
>>> ~/.bash
>>>
>>> when I type <TAB>, it will become /home/my_user_name/.bash
>>>
>>> I'm wondering if it is possible to configure bash command completion,
>>> so that it will still be '~/.bash'
>> You don't say what version of bash you're using, but bash-3.2 and bash-4.0
>> both preserve the tilde by default.

I think I may have been confused.  If you're not doing command completion
with the tilde-prefixed string (that is, if it's an argument to another
command already on the line), you're probably using the
bash_completion set of programmable completions, and the completion
specification for the command to which this is an argument is probably
expanding the tilde.

I assumed you were trying to complete the above string as a command, not
an argument to a command.

What is the full command line on which you're attempting completion?

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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