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/exec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/exec.h') diff --git a/src/exec.h b/src/exec.h index f394f3f..2b31825 100644 --- a/src/exec.h +++ b/src/exec.h @@ -56,7 +56,7 @@ struct cmdentry { #define DO_ABS 0x02 /* checks absolute paths */ #define DO_NOFUNC 0x04 /* don't return shell functions, for command */ #define DO_ALTPATH 0x08 /* using alternate path */ -#define DO_ALTBLTIN 0x20 /* %builtin in alt. path */ +#define DO_REGBLTIN 0x10 /* regular built-ins and functions only */ extern const char *pathopt; /* set by padvance */ -- cgit 1.4.1