Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Feb 2011 15:13:18 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r218328 - stable/7/bin/sh
Message-ID:  <201102051513.p15FDIJD031789@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102051513.p15FDIJD031789>