mirror of
https://github.com/opnsense/src.git
synced 2026-02-14 08:13:38 -05:00
POSIX does not allow constructs like:
if cmd; then fi
{ }
Add a colon dummy command, except in a test that verifies that such empty
lists do not cause crashes when used as a function definition.
12 lines
194 B
Text
12 lines
194 B
Text
# $FreeBSD$
|
|
# 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
|