From owner-cvs-src@FreeBSD.ORG Sat Dec 27 18:05:13 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A2A316A4CE; Sat, 27 Dec 2003 18:05:13 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89B6C43D31; Sat, 27 Dec 2003 18:05:12 -0800 (PST) (envelope-from cracauer@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id hBS25C0B070887; Sat, 27 Dec 2003 18:05:12 -0800 (PST) (envelope-from cracauer@repoman.freebsd.org) Received: (from cracauer@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id hBS25Cih070886; Sat, 27 Dec 2003 18:05:12 -0800 (PST) (envelope-from cracauer) Message-Id: <200312280205.hBS25Cih070886@repoman.freebsd.org> From: Martin Cracauer Date: Sat, 27 Dec 2003 18:05:12 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/sh eval.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2003 02:05:13 -0000 cracauer 2003/12/27 18:05:12 PST FreeBSD src repository Modified files: bin/sh eval.c Log: PR 28852 sh -e behaviour was incorrect when && and || statements where used in "if" clauses. This is the patch submitted by MORI Kouji . It fixes the issue at hand, but sh fixes like this are super-hard to verify that they don't break anything else. I ran some of my old test cases and a few big GNU configure scripts that detected mistakes before, with the previous sh, patched sh and bash. No differences in behaviour found. MFC recommended after longer than usual time. Compiles on i386 and sledge. Revision Changes Path 1.38 +1 -24 src/bin/sh/eval.c