Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Sep 2005 08:19:58 +0000 (UTC)
From:      Stefan Farfeleder <stefanf@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/bin/sh eval.c
Message-ID:  <200509100819.j8A8Jx24013449@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
stefanf     2005-09-10 08:19:58 UTC

  FreeBSD src repository

  Modified files:
    bin/sh               eval.c 
  Log:
  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() {
                  false
                  false
          }
          f || true
  
  PR:     77067, 85267
  Briefly reviewed by:    cracauer
  
  Revision  Changes    Path
  1.45      +1 -1      src/bin/sh/eval.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509100819.j8A8Jx24013449>