summary refs log tree commit diff
path: root/src/eval.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2011-07-09 22:05:22 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2011-07-09 22:05:22 +0800
commit4f7e206782675b548565ca2bc82bc8c262a0f20e (patch)
tree8c769a58f369b49c788e17d1832a19bb2093847b /src/eval.h
parentRelease 0.5.7. (diff)
downloaddash-4f7e206782675b548565ca2bc82bc8c262a0f20e.tar.gz
dash-4f7e206782675b548565ca2bc82bc8c262a0f20e.zip
[BUILTIN] Merge SKIPFUNC/SKIPFILE and only clear SKIPFUNC when leaving dotcmd
Currently upon leaving a dotcmd the evalskip state is reset so
if a continue/break statement is used within a dot script it would
have no effect outside of the dot script.

This is inconsistent with other shells.

This patch is based on one by Jilles Tjoelker and only clears
SKIPFUNC when leaving a dot script.  As a result continue/break
will remain in effect.

It also merges SKIPFUNC/SKIPFILE as they have no practical difference.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--src/eval.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/eval.h b/src/eval.h
index 4e4de30..dc8acd2 100644
--- a/src/eval.h
+++ b/src/eval.h
@@ -61,4 +61,3 @@ extern int evalskip;
 #define SKIPBREAK	(1 << 0)
 #define SKIPCONT	(1 << 1)
 #define SKIPFUNC	(1 << 2)
-#define SKIPFILE	(1 << 3)