about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-03-10 21:51:02 +0000
committerEric Wong <e@80x24.org>2017-03-14 20:08:06 +0000
commit4a6a6f88f97e4660597bec4a161eece55b8bba5e (patch)
treeb2d26c3549d24cf6796c97772153135b33f3eb3a
parentab11a4da17f5ccfc4a2a21cd4c5090627b31c3b9 (diff)
downloadunicorn-4a6a6f88f97e4660597bec4a161eece55b8bba5e.tar.gz
GNU expr supports '+' to match one or more occurrences, but
it seems the expr(1) on my FreeBSD installation does not.
-rw-r--r--t/test-lib.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 28d6a88..7f97958 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -106,8 +106,8 @@ check_stderr () {
 # unicorn_setup
 unicorn_setup () {
         eval $(unused_listen)
-        port=$(expr $listen : '[^:]*:\([0-9]\+\)')
-        host=$(expr $listen : '\([^:]*\):[0-9]\+')
+        port=$(expr $listen : '[^:]*:\([0-9]*\)')
+        host=$(expr $listen : '\([^:][^:]*\):[0-9][0-9]*')
 
         rtmpfiles unicorn_config pid r_err r_out fifo tmp ok
         cat > $unicorn_config <<EOF