[prev in list] [next in list] [prev in thread] [next in thread]
List: bash-bug
Subject: Re: Completiong for first word invoked even when cursor is before the first word
From: Chet Ramey <chet.ramey () case ! edu>
Date: 2011-05-06 15:19:43
Message-ID: 4DC4118F.9010207 () case ! edu
[Download RAW message or body]
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/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic