diff options
| author | tjg <tjg> | 2001-10-01 12:54:26 +0000 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:23:19 +0100 |
| commit | 8ce5bc05bcf9b263a65eb6e8d6bae0e610a88b16 (patch) | |
| tree | d1e35e9054b5ab6d82c0c277b80da892782b6033 /rc.h | |
| parent | 593a3857b992c85038276eb0e4c8aa20d796f3de (diff) | |
Bug: it's no longer possible to use parentheses to sneak a word that
needs quoting past the "quoting detector", so `fn x { echo $(x.y) }'
now works both in the current rc and its descendants.
Diffstat (limited to 'rc.h')
| -rw-r--r-- | rc.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -29,8 +29,8 @@ typedef struct Format Format; typedef union Edata Edata; typedef enum nodetype { - nAndalso, nAssign, nBackq, nBang, nBody, nCbody, nNowait, nBrace, nConcat, - nCount, nElse, nFlat, nDup, nEpilog, nNewfn, nForin, nIf, nQword, + nAndalso, nAssign, nBackq, nBang, nBody, nCbody, nNowait, nBrace, + nConcat, nCount, nElse, nFlat, nDup, nEpilog, nNewfn, nForin, nIf, nOrelse, nPipe, nPre, nRedir, nRmfn, nArgs, nSubshell, nCase, nSwitch, nMatch, nVar, nVarsub, nWhile, nWord, nLappend, nNmpipe } nodetype; @@ -97,6 +97,7 @@ struct Redir { struct Word { char *w, *m; + bool q; }; struct Rq { @@ -279,6 +280,7 @@ extern bool rcrc; /* lex.c */ +extern bool quotep(char *); extern int yylex(void); extern void inityy(void); extern void yyerror(const char *); |