help / color / mirror / Atom feed
* 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 $#
% typeset -u -R40 ZSH_EVAL_CONTEXT

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


This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.vuxu.org/zsh-workers

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 zsh-workers zsh-workers/ https://inbox.vuxu.org/zsh-workers \
	public-inbox-index zsh-workers

Example config snippet for mirrors.
Newsgroup available over NNTP:

code repositories for the project(s) associated with this inbox:


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git