On 6/18/10 5:34 AM, Freddy Vulto wrote:
> Within the bash-completion package
> (http://bash-completion.alioth.debian.org/), we're planning on prefixing
> all functions and variables to create some kind of namespace. The
> prefixes probably are going to be:
>
> bashcomp_
> BASHCOMP_
>
> Are there any considerations to take into account regarding prefixing?
> Does bash officially "reserve" any variable/function prefix to itself?
> At least BASH_* and COMP_* seem to be used by bash.
Your choices seem fine. Bash also uses (and so, I suppose, reserves)
READLINE_*. I would use the lower-case version, since Bash restricts
itself to the uppercase ASCII character set for variable names.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/