bug-bash
[Top][All Lists]
Advanced

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

Re: Completiong for first word invoked even when cursor is before the fi


From: Chet Ramey
Subject: Re: Completiong for first word invoked even when cursor is before the first word
Date: Fri, 06 May 2011 11:19:43 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10

On 5/1/11 11:02 AM, Ville Skyttä wrote:
> Hello,
> 
> Completion functions seem to be invoked for the first word even when the
> cursor is before that word.  For example:
> 
> $ foo() { echo ; echo completing; }
> $ foo # hit Ctrl-A to go to beginning of line (before foo), then Tab
> completing

I think this should perform command word completion.  I will have to see
why it doesn't.

> Same thing if there's whitespace before the first word and cursor is
> somewhere there in the whitespace.  Is this on purpose?

This is more bash trying to be helpful.  I will look at whether or not
this is worth changing for the next version.

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]