aboutsummaryrefslogtreecommitdiffhomepage
path: root/exec.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-07-11 11:28:10 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-07-11 11:28:10 -0700
commit98297e5234360c3e5e6a70f26b66904a6d94a39f (patch)
tree01e627cc9be08653e71c73926deb3b34ead10c2b /exec.cpp
parent3915faf3820ad25f326c98c1f7042f9e2670202c (diff)
Teach while loops to not hang forever with no-execute
Fixes #1543
Diffstat (limited to 'exec.cpp')
-rw-r--r--exec.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/exec.cpp b/exec.cpp
index ae4c496d..f2d168a9 100644
--- a/exec.cpp
+++ b/exec.cpp
@@ -592,6 +592,7 @@ void exec_job(parser_t &parser, job_t *j)
CHECK(j,);
CHECK_BLOCK();
+ /* If fish was invoked with -n or --no-execute, then no_exec will be set and we do nothing. */
if (no_exec)
{
return;