svn commit: r218326 - stable/8/bin/sh
Jilles Tjoelker
jilles at FreeBSD.org
Sat Feb 5 15:09:55 UTC 2011
Author: jilles
Date: Sat Feb 5 15:09:55 2011
New Revision: 218326
URL: http://svn.freebsd.org/changeset/base/218326
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/8/bin/sh/var.c
Directory Properties:
stable/8/bin/sh/ (props changed)
Modified: stable/8/bin/sh/var.c
==============================================================================
--- stable/8/bin/sh/var.c Sat Feb 5 15:02:19 2011 (r218325)
+++ stable/8/bin/sh/var.c Sat Feb 5 15:09:55 2011 (r218326)
@@ -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
@@ -759,9 +758,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
More information about the svn-src-stable-8
mailing list