fixed uname | sed (needed to quote the '[')

This commit is contained in:
Todd C. Miller
1994-09-20 22:48:59 +00:00
parent 98e893ecec
commit fa4273a937

2
aclocal.m4 vendored
View 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"