Teach while loops to not hang forever with no-execute

Fixes #1543
This commit is contained in:
ridiculousfish
2014-07-11 11:28:10 -07:00
parent 3915faf382
commit 98297e5234
4 changed files with 12 additions and 0 deletions

View File

@@ -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;