opnsense-src/tools/regression/bin/sh/builtins/eval5.0
Jilles Tjoelker b84d7af7c6 sh: Return 0 from eval if no command was given.
This makes a difference if there is a command substitution.

To make this work, evalstring() has been changed to set exitstatus to 0 if
no command was executed (the string contained only whitespace).

Example:
  eval $(false); echo $?
should print 0.
2010-08-03 22:17:29 +00:00

4 lines
78 B
Text

# $FreeBSD$
# eval should return 0 if no command was executed.
eval $(false)