From owner-cvs-src-old@FreeBSD.ORG Fri Aug 28 22:44:42 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C4C2106566C for ; Fri, 28 Aug 2009 22:44:42 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5B6EC8FC08 for ; Fri, 28 Aug 2009 22:44:42 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n7SMigiW089059 for ; Fri, 28 Aug 2009 22:44:42 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n7SMigLT089058 for cvs-src-old@freebsd.org; Fri, 28 Aug 2009 22:44:42 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <200908282244.n7SMigLT089058@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Fri, 28 Aug 2009 22:41:25 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/sh eval.c exec.c mknodes.c nodes.c.pat src/tools/regression/bin/sh/execution func2.0 X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Aug 2009 22:44:42 -0000 jilles 2009-08-28 22:41:25 UTC FreeBSD src repository Modified files: bin/sh eval.c exec.c mknodes.c nodes.c.pat Added files: tools/regression/bin/sh/execution func2.0 Log: SVN rev 196634 on 2009-08-28 22:41:25Z by jilles sh: Fix crash with empty functions (f() { }) introduced in r196483 Empty pairs of braces are represented by a NULL node pointer, just like empty lines at the top level. Support for empty pairs of braces may be removed later. They make the code more complex, have inconsistent behaviour (may or may not change $?), are not specified by POSIX and are not allowed by some other shells like bash, dash and ksh93. Reported by: kan Revision Changes Path 1.66 +2 -2 src/bin/sh/eval.c 1.36 +1 -1 src/bin/sh/exec.c 1.20 +2 -4 src/bin/sh/mknodes.c 1.17 +12 -1 src/bin/sh/nodes.c.pat 1.1 +11 -0 src/tools/regression/bin/sh/execution/func2.0 (new)