summaryrefslogtreecommitdiff
path: root/parser.h
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2023-05-09 10:33:56 -0400
committerChet Ramey <chet.ramey@case.edu>2023-05-09 10:33:56 -0400
commitc375f8f45f4882db3098f9b54a19b75d2b176537 (patch)
tree52a08d198270c9806af17ddf534578dcd389d0ec /parser.h
parent896df2874a513d41b570852c2de6b2d612a1706a (diff)
downloadbash-c375f8f45f4882db3098f9b54a19b75d2b176537.tar.gz
subshells should not inherit FIFOs; initial framework for nofork (foreground) command substitutions
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/parser.h b/parser.h
index a27dc06b..3efdd798 100644
--- a/parser.h
+++ b/parser.h
@@ -52,6 +52,7 @@
#define PST_NOERROR 0x800000 /* don't print error messages in yyerror */
#define PST_STRING 0x1000000 /* parsing a string to a command or word list */
#define PST_CMDBLTIN 0x2000000 /* last token was the `command' builtin */
+#define PST_FUNSUBST 0x4000000 /* parsing a foreground command substitution */
/* Definition of the delimiter stack. Needed by parse.y and bashhist.c. */
struct dstack {
@@ -75,6 +76,10 @@ struct dstack {
#define DOLBRACE_QUOTE 0x40 /* single quote is special in double quotes */
#define DOLBRACE_QUOTE2 0x80 /* single quote is semi-special in double quotes */
+/* characters that can appear following ${ to introduce a function or value
+ substitution (this is mksh terminology and needs to be changed). */
+#define FUNSUB_CHAR(n) ((n) == ' ' || (n) == '\t' || (n) == '\n' || (n) == '|')
+
/* variable declarations from parse.y */
extern struct dstack dstack;