On 2021-08-05 9:48 a.m., Vincent Lefevre wrote:
Thanks. Easy to get that wrong. So it's ' [: ' that should be taken as a single entity and ':] ' likewise.On 2021-08-05 09:05:19 -0700, Ray Andrews wrote:Cool. I thought zsh always used ' [:digit:]' not the double bracket form.It is not a double-bracket form. The two brackets have different meanings: the first one if for a list of characters, and the second one is for a character class. You can write: [ab[:digit:]cd]