bug-bash
[Top][All Lists]
Advanced

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

Re: [patches] small improvements to the bashref.texi document


From: Chet Ramey
Subject: Re: [patches] small improvements to the bashref.texi document
Date: Mon, 12 Sep 2011 09:48:46 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2

On 9/11/11 6:37 PM, rogerx.oss@gmail.com wrote:
> 
> SHELL BUILTIN COMMANDS : compgen
> 
> First paragraph
> 
> Run-on sentence/Repetitive statement (aka Too wordy)
> 
> Original Text: When using the -F or -C options, the various shell variables 
> set by the
> programmable completion  facilities,  while  available, will not have useful
> values."
> 
> Solution: strike "while available,"
> 
> If they're "not available", why worry?

Because the shell makes a distinction between set and unset variables.
The programmable completion code takes care to make sure that the
variables it sets are only set when programmable completion is executing
shell functions or commands.  These variables will be set while compgen
is running, but, since they depend on the readline state, may not contain
useful or current values.
-- 
``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]