On Mon, Feb 05, 2001 at 08:47:59PM -0800, John H Darrah <[EMAIL PROTECTED]> wrote:
| Try this:
| if [ ! -z "${1##v[0-9][0-9].[0-9][0-9].[0-9][0-9]}" ]
[...]

Remebering that this is not portable, and the day you move to a machine
whose /bin/sh is not bash your script will break. The whole world isn't
linux, you know :-)

If you want to write portable shell, which will stand you in good stead in
many environments, use a case statement for this.
-- 
Cameron Simpson, DoD#743        [EMAIL PROTECTED]    http://www.zip.com.au/~cs/

I generally avoid temptation unless I can't resist it.  - Mae West



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to