bug-bash
[Top][All Lists]
Advanced

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

Re: COMPREPLY scope


From: Chet Ramey
Subject: Re: COMPREPLY scope
Date: Wed, 22 May 2013 10:25:16 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130328 Thunderbird/17.0.5

On 5/17/13 5:50 PM, Mario Signorino wrote:
> Hi all
> 
> I need some help and possibly also an advice.
> 
> Is it possible to retrieve the COMPREPLY variable outside and/or after 
> calling the complete function? 

No.  The programmable completion code unsets COMPREPLY after the shell
function completes.  You might have some luck experimenting with the
default completion feature (complete -D), but you'll have to do all the
dispatching yourself.

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]