sh: Fix some tests that used sh instead of ${SH}
so they tested the wrong sh. This was caused because these tests were committed after the sh -> ${SH} change but were created before.
This commit is contained in:
parent
0271d0cd13
commit
2a3de776bf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216398
@ -1,4 +1,4 @@
|
||||
# $FreeBSD$
|
||||
|
||||
echo ':; fi' | sh -n 2>/dev/null && exit 1
|
||||
echo ':; fi' | ${SH} -n 2>/dev/null && exit 1
|
||||
exit 0
|
||||
|
@ -3,5 +3,5 @@
|
||||
# This may fail when parsing or when defining the function, or the definition
|
||||
# may silently do nothing. In no event may the function be executed.
|
||||
|
||||
sh -c 'unset() { echo overriding function executed, bad; }; v=1; unset v; exit "${v-0}"' 2>/dev/null
|
||||
${SH} -c 'unset() { echo overriding function executed, bad; }; v=1; unset v; exit "${v-0}"' 2>/dev/null
|
||||
:
|
||||
|
Loading…
Reference in New Issue
Block a user