diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2018-05-19 02:39:52 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-05-28 17:12:23 +0800 |
commit | cbb71a836874d176809a34e22f6b6e4e3ba8c85b (patch) | |
tree | 7bfba4c4202e600b13d660d74b6d93cb914a7733 /src/parser.h | |
parent | exec: Never rehash regular built-ins (diff) | |
download | dash-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 '')
-rw-r--r-- | src/parser.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 *); |