]> granicus.if.org Git - sudo/commitdiff
fixed uname | sed (needed to quote the '[')
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 20 Sep 1994 22:48:59 +0000 (22:48 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 20 Sep 1994 22:48:59 +0000 (22:48 +0000)
aclocal.m4

index 0ffb6ec7d504c27c57e94bb25a8b623492f92da1..cb8cf82d420e837d3525e0663ee2697b261c714f 100644 (file)
@@ -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"