]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sh: Get rid of unnecessary non-standard empty lists.
authorjilles <jilles@FreeBSD.org>
Mon, 16 Aug 2010 17:18:08 +0000 (17:18 +0000)
committerjilles <jilles@FreeBSD.org>
Mon, 16 Aug 2010 17:18:08 +0000 (17:18 +0000)
commit81d99cf50dae52dedc34eb662d6bff22a4454e04
tree0b8c268bf929695bd269b4b35fcf2872055df49d
parentdd1fff9bcb93c49e02a04bb712ecc2695db0c218
sh: Get rid of unnecessary non-standard empty lists.

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.
tools/regression/bin/sh/builtins/command3.0
tools/regression/bin/sh/builtins/command5.0
tools/regression/bin/sh/builtins/command6.0
tools/regression/bin/sh/execution/func2.0
tools/regression/bin/sh/set-e/elif1.0
tools/regression/bin/sh/set-e/elif2.0
tools/regression/bin/sh/set-e/if1.0
tools/regression/bin/sh/set-e/if3.0
tools/regression/bin/sh/set-e/while1.0
tools/regression/bin/sh/set-e/while2.0