zsh-workers
 help / color / mirror / code / Atom feed
* "Bug" from time immemorial with subscript flags
@ 2024-03-08 19:56 Bart Schaefer
  0 siblings, 0 replies; only message in thread
From: Bart Schaefer @ 2024-03-08 19:56 UTC (permalink / raw)
  To: Zsh hackers list

No suggested solution at the moment:

% a='three words here'
% : ${a[(w)*]}
zsh: bad math expression: operand expected at `*'

That example is a bit nonsense because (w) does not cause the result
to be returned as an array, only to be indexed differently, so there
would be no reason to use [*] (or [@]) there.  However, any subscript
flags cause the same error.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-03-08 19:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-08 19:56 "Bug" from time immemorial with subscript flags 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).