On Tue, 13 Sep 2022 19:26:47 -0000, Klemens Nanni wrote:

> install.sub uses [[ foo == f*o ]] extensively, yet ksh(1) only documents
> pattern matching for the = and != operators.

Think of the wasted bytes in install.sub!

> Just like with [, = and == behave the same in [[ last time I checked.
>
>       $ [[ foo = f*o ]] && echo match
>       match
>       $ [[ foo == f*o ]] && echo match
>       match
>
> Feedback? OK?

This is correct, though I'd prefer if the single "=" came first to
match the order given in the operators section.  E.g.

The second operand of the
.Sq = ,
.Sq ==
and
.Sq !=
expressions are patterns (e.g. the comparison

 - todd

Reply via email to