svn commit: r217847 - head/bin/sh

Jilles Tjoelker jilles at FreeBSD.org
Tue Jan 25 20:56:18 UTC 2011


Author: jilles
Date: Tue Jan 25 20:56:18 2011
New Revision: 217847
URL: http://svn.freebsd.org/changeset/base/217847

Log:
  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.
  
  MFC after:	1 week

Modified:
  head/bin/sh/var.c

Modified: head/bin/sh/var.c
==============================================================================
--- head/bin/sh/var.c	Tue Jan 25 20:54:29 2011	(r217846)
+++ head/bin/sh/var.c	Tue Jan 25 20:56:18 2011	(r217847)
@@ -600,9 +600,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
@@ -840,9 +839,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-all mailing list