From 2b4444dbed9aabc0221ff4136f5b190ba54daabe Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Tue, 29 Mar 2016 16:54:40 +0000 Subject: [PATCH] revert /bin/sh shebang behavior --- urchin | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/urchin b/urchin index bbcab36..1d740f2 100755 --- a/urchin +++ b/urchin @@ -425,7 +425,7 @@ report_outcome() { } has_shebang_line() { - head -n 1 "${1}" | grep -qE '^#!' + head -n 1 "${1}" | grep -v '#!/bin/sh' | grep -q '^#!' } USAGE="usage: $0 [options]... [test file or directory]..." @@ -443,8 +443,8 @@ particular test file once per shell. On each run, 1. The TEST_SHELL environment variable is set to the particular shell. -2. If the test file lacks a shebang line, the test script is also - executed in that shell. +2. If the test file lacks a shebang line or has a shebang line of + "#!/bin/sh", the test script is also executed in that shell. The following flags affect how this multiple-shell testing is handled.