[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: param expansion with single-character special vars in the environmen
From: |
Chet Ramey |
Subject: |
Re: param expansion with single-character special vars in the environment |
Date: |
Mon, 2 May 2016 16:07:57 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.0 |
On 5/2/16 4:01 PM, Dan Douglas wrote:
> On Mon, May 2, 2016 at 1:59 PM, Grisha Levit <grishalevit@gmail.com> wrote:
>>
>> On Mon, May 2, 2016 at 2:48 PM, Chet Ramey <chet.ramey@case.edu> wrote:
>>>
>>> and this one throws away the nameref attribute:
>>>
>>> typeset -n foo ; typeset -i foo ; foo=7*6 ; typeset -p foo
>>
>>
>> I think it's important to note that the nameref attribute is thrown away at
>> the `typeset -i foo' step, which makes some sense since `typeset -n -i' does
>> not seem to be valid in ksh.
>
> ksh93 stores integer variables as actual integers internally so
> there's no opportunity for storing the expression, and the nameref
> attribute just wouldn't make sense.
I know. I'm surprised there's no warning.
--
``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/
- Re: param expansion with single-character special vars in the environment, Chet Ramey, 2016/05/01
- Re: param expansion with single-character special vars in the environment, Chet Ramey, 2016/05/02
- Re: param expansion with single-character special vars in the environment, Chet Ramey, 2016/05/02
- Re: param expansion with single-character special vars in the environment, Chet Ramey, 2016/05/02
- Re: param expansion with single-character special vars in the environment, Chet Ramey, 2016/05/04
- Re: param expansion with single-character special vars in the environment, Piotr Grzybowski, 2016/05/04
- Re: param expansion with single-character special vars in the environment, Dan Douglas, 2016/05/04
- Re: param expansion with single-character special vars in the environment, Dan Douglas, 2016/05/04
- Re: param expansion with single-character special vars in the environment, Piotr Grzybowski, 2016/05/05
- Re: param expansion with single-character special vars in the environment, Chet Ramey, 2016/05/05
Re: param expansion with single-character special vars in the environment, Chet Ramey, 2016/05/02
Re: param expansion with single-character special vars in the environment, Chet Ramey, 2016/05/02