From 66c706acfb3cda802bac4629219e3c3e064352ed Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Tue, 15 Nov 2011 15:21:58 -0800 Subject: t0011: fix test under OpenBSD expr on OpenBSD uses a basic regular expression (according to re_format(7)), which doesn't support +, only *. Acked-by: Eric Wong --- t/t0011-active-unix-socket.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t0011-active-unix-socket.sh b/t/t0011-active-unix-socket.sh index 6f9ac53..d256f5c 100644 --- a/t/t0011-active-unix-socket.sh +++ b/t/t0011-active-unix-socket.sh @@ -7,7 +7,7 @@ read_pid_unix () { socat - UNIX:$unix_socket | \ tail -1) test -n "$x" - y="$(expr "$x" : '\([0-9]\+\)')" + y="$(expr "$x" : '\([0-9][0-9]*\)')" test x"$x" = x"$y" test -n "$y" echo "$y" -- cgit v1.2.3-24-ge0c7