From: Todd C. Miller Date: Tue, 20 Sep 1994 22:48:59 +0000 (+0000) Subject: fixed uname | sed (needed to quote the '[') X-Git-Tag: SUDO_1_4_0~701 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa4273a93779eeb6179eb6d9732e044f314e339c;p=sudo fixed uname | sed (needed to quote the '[') --- diff --git a/aclocal.m4 b/aclocal.m4 index 0ffb6ec7d..cb8cf82d4 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -110,7 +110,7 @@ if test -n "$UNAMEPROG"; then echo "checking OS based on uname(1)" OS=`$UNAMEPROG -s` # this is yucky but we want to make sure $OSREV is an int... - OSREV=`$UNAMEPROG -r | $SEDPROG -e 's/^[A-z \.0]*//' -e 's/\..*//'` + OSREV=`$UNAMEPROG -r | $SEDPROG -e 's/^[[ \.0A-z]]*//' -e 's/\..*//'` if test "$OS" = "SunOS" -a "$OSREV" -ge 5 ; then OS="solaris"