cvs commit: src/bin/sh eval.c

Stefan Farfeleder stefanf at FreeBSD.org
Sat Sep 10 01:25:29 PDT 2005


stefanf     2005-09-10 08:25:28 UTC

  FreeBSD src repository

  Modified files:
    bin/sh               eval.c 
  Log:
  Pass the EV_TESTED flag to evalloop() and evalfor().  This fixes unwanted
  termination with set -e if a command fails in a loop body inside a function
  with an explicitely tested exit status, eg
  
          f() {
                  for i in 1 2 3; do
                          false
                  done
          }
          f || true
  
  Briefly reviewed by:    cracauer
  
  Revision  Changes    Path
  1.46      +8 -8      src/bin/sh/eval.c


More information about the cvs-src mailing list