sh: Add test for sh -c with missing command string.

This already works correctly.
This commit is contained in:
Jilles Tjoelker 2017-08-13 14:36:10 +00:00
parent 06d0095e71
commit 413bf7b083
2 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,7 @@ TESTSDIR= ${TESTSBASE}/bin/sh/${.CURDIR:T}
ATF_TESTS_SH= functional_test
${PACKAGE}FILES+= sh-ac1.0
${PACKAGE}FILES+= sh-c-missing1.0
${PACKAGE}FILES+= sh-c1.0
${PACKAGE}FILES+= sh-ca1.0
${PACKAGE}FILES+= sh-fca1.0

View File

@ -0,0 +1,3 @@
# $FreeBSD$
! echo echo bad | ${SH} -c 2>/dev/null