On Tue, 11 Feb 2003, Todd A. Jacobs wrote:

> That's why constructs like:
> 
>       [[ 1 < a ]]; echo $?
> 
> work. Incidentally, *any* number will evaluate to less than "a" in
> lexicographic sort order, so this can be used as another valid test for
> integers, and will be faster since it doesn't require spawning another
> process the way egrep does.

that will only detect if a string *starts* with at least one integer.

rday



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

Reply via email to