mirror of
https://github.com/opnsense/src.git
synced 2026-02-24 02:10:45 -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.
15 lines
164 B
Text
15 lines
164 B
Text
# $FreeBSD$
|
|
command -V ls
|
|
command -V true
|
|
command -V /bin/ls
|
|
|
|
fun() {
|
|
:
|
|
}
|
|
command -V fun
|
|
command -V break
|
|
command -V if
|
|
command -V {
|
|
|
|
alias foo=bar
|
|
command -V foo
|