From 53f893d0626f2d683f6da229301c5dbb75d8dbe8 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 12 Feb 2012 20:27:48 +0000 Subject: 30181, plus rename of PF_* flags to PREFORK_*: Pass sh-wordsplitting instructions to paramsubst() using flags, avoiding side effects of explicitly setting and unsetting the SHWORDSPLIT option. --- Src/zsh.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'Src/zsh.h') diff --git a/Src/zsh.h b/Src/zsh.h index 29c8a8319..cc3a67008 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -1645,9 +1645,18 @@ enum { }; /* Flags as the second argument to prefork */ -#define PF_TYPESET 0x01 /* argument handled like typeset foo=bar */ -#define PF_ASSIGN 0x02 /* argument handled like the RHS of foo=bar */ -#define PF_SINGLE 0x04 /* single word substitution */ +/* argument handled like typeset foo=bar */ +#define PREFORK_TYPESET 0x01 +/* argument handled like the RHS of foo=bar */ +#define PREFORK_ASSIGN 0x02 +/* single word substitution */ +#define PREFORK_SINGLE 0x04 +/* explicitly split nested substitution */ +#define PREFORK_SPLIT 0x08 +/* SHWORDSPLIT in parameter expn */ +#define PREFORK_SHWORDSPLIT 0x10 +/* SHWORDSPLIT forced off in nested subst */ +#define PREFORK_NOSHWORDSPLIT 0x20 /* * Structure for adding parameters in a module. -- cgit 1.4.1