git: sh: Reduce unnecessary forks with eval.

看板DFBSD_commit作者時間14年前 (2011/08/22 08:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit f15f366852663832eb02933efecc062dbff4bc59 Author: Peter Avalos <pavalos@dragonflybsd.org> Date: Sun Aug 21 14:36:38 2011 -0700 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. Obtained-from: FreeBSD 223163 Summary of changes: bin/sh/eval.c | 5 +++-- tools/regression/bin/sh/expansion/cmdsubst11.0 | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 tools/regression/bin/sh/expansion/cmdsubst11.0 http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f15f366852663832eb02933efecc062dbff4bc59 -- DragonFly BSD source repository
文章代碼(AID): #1EKPnDN9 (DFBSD_commit)