git: sh: Reduce unnecessary forks with eval.

Peter Avalos pavalos at
Sun Aug 21 16:33:34 PDT 2011

commit f15f366852663832eb02933efecc062dbff4bc59
Author: Peter Avalos <pavalos at>
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
    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

DragonFly BSD source repository

More information about the Commits mailing list