From owner-cvs-src-old@FreeBSD.ORG Sun Oct 24 22:04:38 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 643F11065670 for ; Sun, 24 Oct 2010 22:04:38 +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 512A18FC20 for ; Sun, 24 Oct 2010 22:04:38 +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 o9OM4cvp034764 for ; Sun, 24 Oct 2010 22:04:38 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o9OM4ctl034763 for cvs-src-old@freebsd.org; Sun, 24 Oct 2010 22:04:38 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201010242204.o9OM4ctl034763@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Sun, 24 Oct 2010 22:03:21 +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/execution func3.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: Sun, 24 Oct 2010 22:04:38 -0000 jilles 2010-10-24 22:03:21 UTC FreeBSD src repository Modified files: bin/sh parser.c Added files: tools/regression/bin/sh/execution func3.0 Log: SVN rev 214304 on 2010-10-24 22:03:21Z by jilles sh: Do not allow overriding a special builtin with a function. This is a syntax error. POSIX does not say explicitly whether defining a function with the same name as a special builtin is allowed, but it does say that it is impossible to call such a function. A special builtin can still be overridden with an alias. This commit is part of a set of changes that will ensure that when something looks like a special builtin to the parser, it is one. (Not the other way around, as it remains possible to call a special builtin named by a variable or other substitution.) Exp-run done by: pav (with some other sh(1) changes) Revision Changes Path 1.91 +5 -0 src/bin/sh/parser.c 1.1 +7 -0 src/tools/regression/bin/sh/execution/func3.0 (new)