xref: /freebsd/bin/sh/tests/builtins/lineno2.0 (revision a7623790fb345e6dc986dfd31df0ace115e6f2e4)
1# $FreeBSD$
2
3f() {
4	: ${LINENO+${x?}}
5}
6
7unset -v x
8command eval f 2>/dev/null && exit 3
9x=1
10f
11