>> find > foo
>>ask for autocompletion there, only directories are taken into
>>account.
>> ls > foo
>>or
>> cat > foo
>>autocomplete to all filenames (directories and non-directories), as it
>>should.
> 
> 
> This is a limitation of the completion mechanism. There's no easy way to
> detect redirection at arbitrary positions on the command line and act
> accordingly. To do so would require each command completion function to
> handle redirection internally. A more generic solution is required at
> the bash level itself.

And what do you suggest that generic solution should be?  Don't call
the programmable completion code at all if the previous token appears
to be a redirection?

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live Strong.
Chet Ramey, ITS, CWRU    [EMAIL PROTECTED]    http://cnswww.cns.cwru.edu/~chet/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to