From f653ccefbbc7994f01d143432471dbaa8e4cf2d1 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 11 Aug 2013 10:37:08 -0700 Subject: [PATCH] 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 --- doc/flow-control.texi | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.30.2