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

RE: test if a parameter is numeric



> Sorry maybe I'm missing something, but if you need to match more than
> one digit, what's wrong with:
> 
> [[ "$1" == [0-9][0-9]* ]]

Because it would also match "35X". Note that we have glob pattern here,
not regular expressions.

Ronald
-- 
Ronald Fischer (phone +49-89-63676431)
mailto:mn-pg-p-e-b-consultant-3.com@xxxxxxxxxxx



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