Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: mysterious newline





On 2026-11-21 03:12, Stephane Chazelas wrote:
2026-11-20 06:04:53 -0700, Ray Andrews:
[...]
Gotta learn these 'subscript flags'. Half the battle is
knowing what various syntactic elements are even called.
Googling for '(w)' isn't helpful. AI is getting useful tho, it
says that 'substring qualifier' is correct, but I expect that
'subscript flag' is just as good.
Your list here, if it were comprehensive, would be exactly what I had in mind.  When one wants information on a whatever-it's-called thingy,  one has at least the full menu of choices from which to select.  It would be a huge help.  I'd leave out the historical stuff in the condensed version but basically, the name of the thingy, a very brief description of what it does, an example of it's syntax in context, and a robust path to expansive help on that thingy.

print -rl -- *.txt(.m-7Om)
                   ^^^^^^

... if I see that syntax I check the list and see that it is a 'globbing qualifier' and now I know what to research.  'm' *in that context* actually is researchable.

Mind ... I can just do as Daniel said, type " print -rl -- *.txt [TAB] " ... and see "Completing glob flag" ... so that's already mana from heaven.  Tho in the best of all possible worlds the label of the thingy would always be the same.  Can't have everything.







Messages sorted by: Reverse Date, Date, Thread, Author