]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(my_uid): Use `!', not `^' in case pattern `[!0-9]',
authorJim Meyering <jim@meyering.net>
Sun, 27 Jul 2003 20:04:48 +0000 (20:04 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 27 Jul 2003 20:04:48 +0000 (20:04 +0000)
since /bin/sh of at least NetBSD 1.6 and OpenBSD 3.2 don't accept `^'.

tests/priv-check

index abb33602368d31fbc57a91d06242d1f5eab06730..ba3f26c8608f8b0b0669efe84a661a4f016833e9 100644 (file)
@@ -18,7 +18,7 @@ test $? = 0 || {
 
 # Make sure it gives valid output.
 case $my_uid in
-  *[^0-9]*)
+  *[!0-9]*)
     echo "$0: invalid output (\`$my_uid') from \`id -u'" 1>&2
     (exit 1); exit
     ;;