* Readonly specials and extra parameter attributes
@ 2021-09-07 4:56 Bart Schaefer
0 siblings, 0 replies; only message in thread
From: Bart Schaefer @ 2021-09-07 4:56 UTC (permalink / raw)
To: Zsh hackers list
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?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-07 4:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-07 4:56 Readonly specials and extra parameter attributes Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).