On 13:53 11 Feb 2003, Gordon <[EMAIL PROTECTED]> wrote:
| It's just kind of wierd that the shell has builtin math functions, but 
| can't, by itself, tell you if a value is a valid number.

You'll find you can usually contrive not to feed non-numbers to your
operations and don't need such a test often. A case statement can be
used for a lot of simple data validation though.

Cheers,
-- 
Cameron Simpson, DoD#743        [EMAIL PROTECTED]    http://www.zip.com.au/~cs/

Once a Junior Programmer interrupted a Great Guru of the Sun to ask a
Question of no importance. The Great Guru replied in words which the Junior
Programmer did not understand. The Junior Programmer sought to rephrase the
Question, saying, "Stop me if I appear stupid." The great Guru, without
speaking, reached over and pressed L1-A.
The Junior Programmer achieved Enlightenment.   - Jon Green



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to