heredoc13.0 revision 287408
1287408Sjilles# $FreeBSD: head/bin/sh/tests/parser/heredoc13.0 287408 2015-09-02 19:49:55Z jilles $ 2287408Sjilles 3287408Sjillesfailures=0 4287408Sjilles 5287408Sjillescheck() { 6287408Sjilles if ! eval "[ $* ]"; then 7287408Sjilles echo "Failed: $*" 8287408Sjilles : $((failures += 1)) 9287408Sjilles fi 10287408Sjilles} 11287408Sjilles 12287408Sjillescheck '"$(cat <<"" 13287408Sjilles 14287408Sjillesecho yes)" = "yes"' 15287408Sjilles 16287408Sjillescheck '"$(cat <<"" 17287408Sjillesyes 18287408Sjilles 19287408Sjilles)" = "yes"' 20287408Sjilles 21287408Sjillesexit $((failures != 0)) 22