]> diplodocus.org Git - nmh/commitdiff
Try running script(1) for SHELL test in subshell.
authorDavid Levine <levinedl@acm.org>
Fri, 14 Oct 2016 20:53:27 +0000 (16:53 -0400)
committerDavid Levine <levinedl@acm.org>
Fri, 14 Oct 2016 20:53:27 +0000 (16:53 -0400)
test/install-mh/test-version-check

index 1314f64..e9a2ce7 100755 (executable)
@@ -34,8 +34,8 @@ echo OK
 EOF
     chmod +x "${cmd}"
 
-    SHELL="${cmd}" script "${actual}" >/dev/null &
-    wait $!
+    (SHELL="${cmd}"; export SHELL; script "${actual}" >/dev/null &
+     wait $!)
     if grep OK "${actual}" >/dev/null; then
         #### script(1) supports SHELL environment variable.
         use_dash_S=0