1 2 3 4 5 6 7 8 9 10
# $FreeBSD: releng/12.0/bin/sh/tests/builtins/local6.0 294582 2016-01-22 18:10:36Z jilles $ f() { local x readonly x=2 } x=3 f x=4 [ "$x" = 4 ]