Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Readonly specials and extra parameter attributes
- X-seq: zsh-workers 49383
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Readonly specials and extra parameter attributes
- Date: Mon, 6 Sep 2021 21:56:56 -0700
- Archived-at: <https://zsh.org/workers/49383>
- List-id: <zsh-workers.zsh.org>
This isn't allowed:
% typeset -F ARGC
typeset: ARGC: can't change type of a special parameter
But this is:
% typeset -Z3 '#'
% set -- Hello, my name is Bond, James Bond
% print $#
007
% typeset -u -R40 ZSH_EVAL_CONTEXT
% print $ZSH_EVAL_CONTEXT
TOPLEVEL
%
Most readonly-specials are arrays or hashes and ignore these
additional flags, but is this really meant to work for the scalars?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author