From cbb71a836874d176809a34e22f6b6e4e3ba8c85b Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Sat, 19 May 2018 02:39:52 +0800 Subject: eval: Add assignment built-in support again This patch adds assignment built-in support that used to exist in dash prior to 0.3.8-15. This is because it will soon be part of POSIX, and the semantics are now much better defined. Recognition is done at execution time, so even "command -- export" or "var=export; command $var" should work. Signed-off-by: Herbert Xu --- src/parser.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/parser.h') diff --git a/src/parser.h b/src/parser.h index 2875cce..524ac1c 100644 --- a/src/parser.h +++ b/src/parser.h @@ -82,6 +82,7 @@ extern int whichprompt; /* 1 == PS1, 2 == PS2 */ extern int checkkwd; +int isassignment(const char *p); union node *parsecmd(int); void fixredir(union node *, const char *, int); const char *getprompt(void *); -- cgit 1.4.1