summaryrefslogtreecommitdiffstats
path: root/Src/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/Src/exec.c b/Src/exec.c
index f7249f551..17899262d 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -3300,15 +3300,17 @@ execcmd_exec(Estate state, Execcmd_params eparams,
cflags |= BINF_DASH;
break;
default:
- convchar_t opt = unmeta_one(cmdopt, NULL);
- zerr("unknown exec flag -%c", opt);
- lastval = 1;
- errflag |= ERRFLAG_ERROR;
- if (forked)
- _realexit();
- if (how & Z_TIMED)
- shelltime(&shti, &chti, &then, 1);
- return;
+ {
+ convchar_t opt = unmeta_one(cmdopt, NULL);
+ zerr("unknown exec flag -%c", opt);
+ lastval = 1;
+ errflag |= ERRFLAG_ERROR;
+ if (forked)
+ _realexit();
+ if (how & Z_TIMED)
+ shelltime(&shti, &chti, &then, 1);
+ return;
+ }
}
}
if (!argnode)