From 58861fff63a8d2a89f6087b964140482337e3a9d Mon Sep 17 00:00:00 2001 From: kvik Date: Wed, 16 Sep 2020 13:12:13 +0200 Subject: [PATCH] window: fix error exit with the -m flag When called with the -m flag window would always exit with some error, usually status='no match', because of an if-match being the last status-setting command in the script. --- rc/bin/window | 1 + 1 file changed, 1 insertion(+) diff --git a/rc/bin/window b/rc/bin/window index f1425d144..06022a127 100755 --- a/rc/bin/window +++ b/rc/bin/window @@ -86,6 +86,7 @@ if(~ $#mflag 1) { exec $argv0 -x $cmd /dev/cons >[2]/dev/cons } }& + exit '' } if not { if(~ $wctl ''){