diff options
author | Chet Ramey <chet.ramey@case.edu> | 2023-05-09 10:33:56 -0400 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2023-05-09 10:33:56 -0400 |
commit | c375f8f45f4882db3098f9b54a19b75d2b176537 (patch) | |
tree | 52a08d198270c9806af17ddf534578dcd389d0ec /parser.h | |
parent | 896df2874a513d41b570852c2de6b2d612a1706a (diff) | |
download | bash-c375f8f45f4882db3098f9b54a19b75d2b176537.tar.gz |
subshells should not inherit FIFOs; initial framework for nofork (foreground) command substitutions
Diffstat (limited to 'parser.h')
-rw-r--r-- | parser.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |