Date: Tue, 3 Aug 2010 22:17:29 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/sh eval.c src/tools/regression/bin/sh/builtins eval5.0 Message-ID: <201008032220.o73MKPnD066415@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jilles 2010-08-03 22:17:29 UTC
FreeBSD src repository
Modified files:
bin/sh eval.c
Added files:
tools/regression/bin/sh/builtins eval5.0
Log:
SVN rev 210829 on 2010-08-03 22:17:29Z by jilles
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.
Revision Changes Path
1.84 +7 -1 src/bin/sh/eval.c
1.1 +4 -0 src/tools/regression/bin/sh/builtins/eval5.0 (new)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008032220.o73MKPnD066415>
