On 2026-11-20 08:22, Daniel Shahaf wrote:
Man, I almost fainted, that's so fantastically helpful. If I could go back in time ten years an gift myself one extra piece of knowledge, that would be it.Ray Andrews wrote on Fri, 20 Nov 2026 13:04 +00:00:Gotta learn these 'subscript flags'. Half the battle is knowing what various syntactic elements are even called. Googling for '(w)' isn't helpful.You can sidestep the problem by using completion: % : ${foo[(<TAB> . will give you a brief summary of all those whatever-they're-called's. Also, if the «format» zstyle is set appropriately, it will literally say "subscript flag" at the top of the list.
The manual is always terse, any given section presumes the context of it's subject, so we'dOr you could do a whole-words search for "w" in the entire manual. There aren't usually that many matches. That's admittedly less than elegant; perhaps we should add index entries for these.
see: b ... e ... f ... w...... with maybe not even the surrounding parenthesis let alone the full structure: ${(?)...} ... so raw text searches go nowhere. Hard problem to deal with given the inherent terseness of shells where some characters can have a variety of uses depending on context. I long for something like a grammar where all the whatever-they're-called's are elucidated purely as syntactic elements. I wonder how many whatever-they're-called's there even are? I'll bet nobody's ever made a list, but if they have I'd sure like to see it.
Thanks for the above Daniel, that's like a gift from Zeus.