From owner-cvs-src-old@FreeBSD.ORG Tue Nov 2 23:45:28 2010 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 05EC91065693 for ; Tue, 2 Nov 2010 23:45:28 +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 E670C8FC16 for ; Tue, 2 Nov 2010 23:45:27 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id oA2NjR56030209 for ; Tue, 2 Nov 2010 23:45:27 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id oA2NjRkL030208 for cvs-src-old@freebsd.org; Tue, 2 Nov 2010 23:45:27 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201011022345.oA2NjRkL030208@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Tue, 2 Nov 2010 23:44:29 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/sh parser.c src/tools/regression/bin/sh/parser alias3.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: Tue, 02 Nov 2010 23:45:28 -0000 jilles 2010-11-02 23:44:29 UTC FreeBSD src repository Modified files: bin/sh parser.c Added files: tools/regression/bin/sh/parser alias3.0 Log: SVN rev 214709 on 2010-11-02 23:44:29Z by jilles sh: Fix some issues with aliases and case, by importing dash checkkwd code. This moves the function of the noaliases variable into the checkkwd variable. This way it is properly reset on errors and aliases can be used normally in the commands for each case (the case labels recognize the keyword esac but no aliases). The new code is clearer as well. Obtained from: dash Revision Changes Path 1.101 +49 -50 src/bin/sh/parser.c 1.1 +6 -0 src/tools/regression/bin/sh/parser/alias3.0 (new)