xref: /freebsd/bin/sh/tests/execution/set-n1.0 (revision dd41de95a84d979615a2ef11df6850622bf6184e)
1# $FreeBSD$
2
3v=$( ($SH -n <<'EOF'
4for
5EOF
6) 2>&1 >/dev/null)
7[ $? -ne 0 ] && [ -n "$v" ]
8