From: Ben Pfaff Date: Sun, 11 Aug 2013 17:37:08 +0000 (-0700) Subject: doc: Clarify that DO REPEAT only substitutes whole words. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f653ccefbbc7994f01d143432471dbaa8e4cf2d1;p=pspp doc: Clarify that DO REPEAT only substitutes whole words. Based on this conversation: https://lists.gnu.org/archive/html/pspp-users/2013-08/msg00009.html --- diff --git a/doc/flow-control.texi b/doc/flow-control.texi index fb2df35291..fe81c94357 100644 --- a/doc/flow-control.texi +++ b/doc/flow-control.texi @@ -108,6 +108,9 @@ strings, comments, unquoted strings (such as the text on the @cmd{TITLE} or @cmd{DOCUMENT} command), or inside @cmd{BEGIN DATA}@dots{}@cmd{END DATA}. +Substitution occurs only on whole words, so that, for example, a dummy +variable PRINT would not be substituted into the word PRINTOUT. + New variable names used as replacements are not automatically created as variables, but only if used in the code block in a context that would create them, e.g.@: on a @cmd{NUMERIC} or @cmd{STRING} command