revert /bin/sh shebang behavior

This commit is contained in:
Thomas Levine 2016-03-29 16:54:40 +00:00
parent 5604ec97d6
commit 2b4444dbed
1 changed files with 3 additions and 3 deletions

6
urchin
View File

@ -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.