summaryrefslogtreecommitdiff
path: root/Src/zsh.h
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2012-02-12 20:27:48 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2012-02-12 20:27:48 +0000
commit53f893d0626f2d683f6da229301c5dbb75d8dbe8 (patch)
tree8a0cf05abf9a734bc4d51f97a3082cdbbbdd5ea1 /Src/zsh.h
parentcbbed5ed847372b0ba028620138e509a5401a4ff (diff)
downloadzsh-53f893d0626f2d683f6da229301c5dbb75d8dbe8.tar.gz
zsh-53f893d0626f2d683f6da229301c5dbb75d8dbe8.zip
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.
Diffstat (limited to 'Src/zsh.h')
-rw-r--r--Src/zsh.h15
1 files changed, 12 insertions, 3 deletions
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.