cvs commit: src/bin/sh eval.c

Stefan Farfeleder stefanf at
Sat Sep 10 01:19:59 PDT 2005

stefanf     2005-09-10 08:19:58 UTC

  FreeBSD src repository

  Modified files:
    bin/sh               eval.c 
  Pass the EV_TESTED flag to the left operand of NSEMI nodes.  This fixes
  two cases of unwanted termination with set -e:
  * if-commands containing several commands separated by semicolons, eg
          if false; false; then [...]
  * functions with an explicitely tested exit status that contain a failing
    command which is not the last one, eg
          f() {
          f || true
  PR:     77067, 85267
  Briefly reviewed by:    cracauer
  Revision  Changes    Path
  1.45      +1 -1      src/bin/sh/eval.c

More information about the cvs-src mailing list