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

Re: what is truth?



On Oct 9,  8:24pm, Ray Andrews wrote:
} Subject: what is truth?

Please use an actual descriptive subject rather than faux philosophical
pondering.  Thanks.

} I don't have a clue what to make of ' <-> '.  What value
} would work?

<[X]-[Y]>
     Matches any number in the range X to Y, inclusive.  Either of the
     numbers may be omitted to make the range open-ended; hence `<->'
     matches any number.  To match individual digits, the [...] form is
     more efficient.


Also, not stated in the doc, but ranges of this sort are compared using
integer values so they are limited by the representable integers in the
local architecture.  If you really want to match an arbitrarily long
string of digits, you should setopt extendedglob and use [0-9]##.



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