From owner-cvs-src-old@FreeBSD.ORG Thu Jun 16 21:51:18 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D104106566C for ; Thu, 16 Jun 2011 21:51:18 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8B2558FC14 for ; Thu, 16 Jun 2011 21:51:18 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p5GLpIpS080886 for ; Thu, 16 Jun 2011 21:51:18 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p5GLpIci080885 for cvs-src-old@freebsd.org; Thu, 16 Jun 2011 21:51:18 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201106162151.p5GLpIci080885@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Thu, 16 Jun 2011 21:50:28 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/sh eval.c src/tools/regression/bin/sh/expansion cmdsubst11.0 X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jun 2011 21:51:18 -0000 jilles 2011-06-16 21:50:28 UTC FreeBSD src repository Modified files: bin/sh eval.c Added files: tools/regression/bin/sh/expansion cmdsubst11.0 Log: SVN rev 223163 on 2011-06-16 21:50:28Z by jilles sh: Reduce unnecessary forks with eval. The eval special builtin now runs the code with EV_EXIT if it was run with EV_EXIT itself. In particular, this eliminates one fork when a command substitution contains an eval command that ends with an external program or a subshell. This is similar to what r220978 did for functions. Revision Changes Path 1.110 +2 -1 src/bin/sh/eval.c 1.1 +5 -0 src/tools/regression/bin/sh/expansion/cmdsubst11.0 (new)