summary refs log tree commit diff
path: root/src/input.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2018-03-27 00:39:35 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2018-04-19 18:19:29 +0800
commit46d5a7fcea81b489819f753451c1ad2fe435f148 (patch)
tree815be18bb4833adef40246c99a4be0a9cd762fd4 /src/input.h
parenteval: Reap zombies after built-in commands and functions (diff)
downloaddash-46d5a7fcea81b489819f753451c1ad2fe435f148.tar.gz
dash-46d5a7fcea81b489819f753451c1ad2fe435f148.zip
eval: Restore input files in evalcommand
When evalcommand invokes a command that modifies parsefile and
then bails out without popping the file, we need to ensure the
input file is restored so that the shell can continue to execute.

Reported-by: Martijn Dekker <martijn@inlv.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--src/input.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input.h b/src/input.h
index ec97c1d..a9c0517 100644
--- a/src/input.h
+++ b/src/input.h
@@ -97,5 +97,6 @@ void popstring(void);
 int setinputfile(const char *, int);
 void setinputstring(char *);
 void popfile(void);
+void unwindfiles(struct parsefile *);
 void popallfiles(void);
 void closescript(void);