From dd12693da1bb0684bb1b31cda0dbe21591cfe3fe Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Tue, 29 Mar 2016 16:48:56 +0000 Subject: [PATCH] test to change #!/bin/sh shell --- .../With -s, a sh test should be invoked with sh. | 6 ------ ... -s, a sh test should be invoked with the special shell. | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) delete mode 100755 tests/Cross-shell testing/.test-run-by-specified-shell/With -s, a sh test should be invoked with sh. create mode 100755 tests/Cross-shell testing/.test-run-by-specified-shell/With -s, a sh test should be invoked with the special shell. 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. deleted file mode 100755 index b8cda37..0000000 --- a/tests/Cross-shell testing/.test-run-by-specified-shell/With -s, a sh test should be invoked with sh. +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -# This script should run with /bin/sh -# regardless of whether -s or -n is passed. - -ps -o pid,comm,args | grep $$ | grep /bin/sh diff --git a/tests/Cross-shell testing/.test-run-by-specified-shell/With -s, a sh test should be invoked with the special shell. b/tests/Cross-shell testing/.test-run-by-specified-shell/With -s, a sh test should be invoked with the special shell. new file mode 100755 index 0000000..9a247e0 --- /dev/null +++ b/tests/Cross-shell testing/.test-run-by-specified-shell/With -s, a sh test should be invoked with the special shell. @@ -0,0 +1,6 @@ +#!/bin/sh + +# Assuming that urchin was invoked with `-s bash`, +# this script should be being run with bash. + +ps -o pid,comm,args | grep $$ | grep .special-shell