help-bash
[Top][All Lists]
Advanced

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

Re: dot in variable name


From: Eric Peterson
Subject: Re: dot in variable name
Date: Thu, 14 May 2020 15:19:10 -0700


> On 14 May 2020, at 10:02, Chet Ramey <address@hidden> wrote:
> 
> On 5/14/20 12:03 PM, Eric Peterson via wrote:
>> 
>> I remember reading about variable names containing dots (i.e.  tax.amount).  
>> Some sort of namespace of variables. 
> 
> Bash has never allowed dots in variable names. ksh93 introduced dots as a
> kind of namespace delimiter.
> 
> -- 
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/


It must have been ksh93 webpages I saw and got confused.   Looks like an 
interesting idea but I guess to no avail. :). I'll just use underscore to group 
logical variables together, i.e.,

tax_amount
tax_rate
etc...


Eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]