summary refs log tree commit diff
path: root/src/exec.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2018-05-19 02:39:52 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2018-05-28 17:12:23 +0800
commitcbb71a836874d176809a34e22f6b6e4e3ba8c85b (patch)
tree7bfba4c4202e600b13d660d74b6d93cb914a7733 /src/exec.h
parentexec: Never rehash regular built-ins (diff)
downloaddash-cbb71a836874d176809a34e22f6b6e4e3ba8c85b.tar.gz
dash-cbb71a836874d176809a34e22f6b6e4e3ba8c85b.zip
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 <herbert@gondor.apana.org.au>
Diffstat (limited to 'src/exec.h')
-rw-r--r--src/exec.h2
1 files changed, 1 insertions, 1 deletions
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 */