Merge branch 'sg/stress-test'
[gitweb.git] / t / test-lib-functions.sh
index 92cf8f812cca26c94c8054ccd40af806f6b77310..969e2ba6dadd50ecb3a5a03fe9f8c72527eac279 100644 (file)
@@ -1289,7 +1289,7 @@ test_set_port () {
                        port=$(($port + 10000))
                fi
                ;;
-       *[^0-9]*|0*)
+       *[!0-9]*|0*)
                error >&7 "invalid port number: $port"
                ;;
        *)