From d5f1060c1aab18c789a3c31070598f8dbc9f1af9 Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Mon, 29 Feb 2016 12:42:56 +0000 Subject: [PATCH] finish cross-shell testing tests --- .../With -s, a sh test should be invoked with sh. | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/Cross-shell testing/.test-run-by-specified-shell/With -s, a sh test should be invoked with sh. b/tests/Cross-shell testing/.test-run-by-specified-shell/With -s, a sh test should be invoked with sh. index 8a7d82d..4b13cf5 100755 --- a/tests/Cross-shell testing/.test-run-by-specified-shell/With -s, a sh test should be invoked with sh. +++ b/tests/Cross-shell testing/.test-run-by-specified-shell/With -s, a sh test should be invoked with sh. @@ -3,8 +3,4 @@ # This script should run with /bin/sh # regardless of whether -s or -n is passed. -this_shell=$(ps -o pid,comm | sed -n "s/^ *$$//p" | cut -d\ -f2) - -echo "Running shell: $this_shell" - -test $(basename "$this_shell") = sh +ps -a | grep $$ | grep /bin/sh