From 910ef736e93d93880bf9b7703ccb4429607a47d3 Mon Sep 17 00:00:00 2001 From: dallinjdahl <42781038+dallinjdahl@users.noreply.github.com> Date: Wed, 26 Oct 2022 19:33:39 +0000 Subject: [PATCH] make eflag respect bang --- src/cmd/rc/code.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cmd/rc/code.c b/src/cmd/rc/code.c index 208476ae3..612a74454 100644 --- a/src/cmd/rc/code.c +++ b/src/cmd/rc/code.c @@ -162,8 +162,10 @@ outcode(tree *t, int eflag) outcode(c0, eflag); break; case BANG: - outcode(c0, eflag); + outcode(c0, 0); emitf(Xbang); + if(eflag) + emitf(Xeflag); break; case PCMD: case BRACE: