Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: a few question about named reference




> 2023/07/13 15:12、Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>のメール:
> 
> On Wed, Jul 12, 2023 at 9:06 PM Jun T <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
>> [2] readonly named reference
>> 
>> So we can't remove the readonly attribute (and will not be able
>> to remove/unset it). Is this intentional?
> 
> Yes, that's how it works in ksh.

With ksh (Version AJM 93u+m/1.0.4 2022-10-22):
$ typeset -n -r ref=i
ksh: typeset: -n cannot be used with other options except -g

But it's OK if it is intentional.



Messages sorted by: Reverse Date, Date, Thread, Author