aboutsummaryrefslogtreecommitdiffstats
path: root/shell_cmds/sh/tests/execution/func2.0
blob: eb48cc8a5331f05314bb56026bf20780339b0e02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# $FreeBSD: head/bin/sh/tests/execution/func2.0 211399 2010-08-16 17:18:08Z jilles $
# The empty pairs of braces here are to test that this does not cause a crash.

f() { }
f
hash -v f >/dev/null
f() { { }; }
f
hash -v f >/dev/null
f() { { } }
f
hash -v f >/dev/null