sh: Add tests for -n flag.
[dragonfly.git] / tools / regression / bin / sh / execution / set-n1.0
1 # $FreeBSD: src/tools/regression/bin/sh/execution/set-n1.0,v 1.1 2011/06/03 21:17:42 jilles Exp $
2
3 v=$( ($SH -n <<'EOF'
4 for
5 EOF
6 ) 2>&1 >/dev/null)
7 [ $? -ne 0 ] && [ -n "$v" ]