Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
"Bug" from time immemorial with subscript flags
- X-seq: zsh-workers 52715
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: "Bug" from time immemorial with subscript flags
- Date: Fri, 8 Mar 2024 11:56:10 -0800
- Archived-at: <https://zsh.org/workers/52715>
- List-id: <zsh-workers.zsh.org>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author