From owner-svn-src-stable-7@FreeBSD.ORG Sat Feb 5 15:13:19 2011 Return-Path: Delivered-To: svn-src-stable-7@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18AA2106564A; Sat, 5 Feb 2011 15:13:19 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 06D738FC14; Sat, 5 Feb 2011 15:13:19 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p15FDIr6031791; Sat, 5 Feb 2011 15:13:18 GMT (envelope-from jilles@svn.freebsd.org) Received: (from jilles@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p15FDIJD031789; Sat, 5 Feb 2011 15:13:18 GMT (envelope-from jilles@svn.freebsd.org) Message-Id: <201102051513.p15FDIJD031789@svn.freebsd.org> From: Jilles Tjoelker Date: Sat, 5 Feb 2011 15:13:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r218328 - stable/7/bin/sh X-BeenThere: svn-src-stable-7@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 7-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Feb 2011 15:13:19 -0000 Author: jilles Date: Sat Feb 5 15:13:18 2011 New Revision: 218328 URL: http://svn.freebsd.org/changeset/base/218328 Log: MFC r217847: sh: Clean up some old comments: * There is no plan for an alternative to the command "set". * Attempting to unset a readonly variable has not raised an error for quite a while, so the order of unsetting a variable and a function with the same name does not matter. Modified: stable/7/bin/sh/var.c Directory Properties: stable/7/bin/sh/ (props changed) Modified: stable/7/bin/sh/var.c ============================================================================== --- stable/7/bin/sh/var.c Sat Feb 5 15:10:27 2011 (r218327) +++ stable/7/bin/sh/var.c Sat Feb 5 15:13:18 2011 (r218328) @@ -523,9 +523,8 @@ var_compare(const void *a, const void *b /* - * Command to list all variables which are set. Currently this command - * is invoked from the set command when the set command is called without - * any variables. + * Command to list all variables which are set. This is invoked from the + * set command when it is called without any options or operands. */ int @@ -760,9 +759,7 @@ setvarcmd(int argc, char **argv) /* - * The unset builtin command. We unset the function before we unset the - * variable to allow a function to be unset when there is a readonly variable - * with the same name. + * The unset builtin command. */ int