local1.0 revision 238469
1238469Sjilles# $FreeBSD: head/tools/regression/bin/sh/builtins/local1.0 238469 2012-07-15 10:22:13Z jilles $ 2238469Sjilles# A commonly used but non-POSIX builtin. 3238469Sjilles 4238469Sjillesf() { 5238469Sjilles local x 6238469Sjilles x=2 7238469Sjilles [ "$x" = 2 ] 8238469Sjilles} 9238469Sjillesx=1 10238469Sjillesf || exit 3 11238469Sjilles[ "$x" = 1 ] || exit 3 12238469Sjillesf || exit 3 13238469Sjilles[ "$x" = 1 ] || exit 3 14