summaryrefslogtreecommitdiff
path: root/rc
diff options
context:
space:
mode:
authorkvik <kvik@a-b.xyz>2020-09-16 13:12:13 +0200
committerkvik <kvik@a-b.xyz>2020-09-16 13:12:13 +0200
commit58861fff63a8d2a89f6087b964140482337e3a9d (patch)
treedf1ee8d50d792caa11e76927db720927cd6118a3 /rc
parent537443d959984163040907d6287ac6ec3cbdc781 (diff)
downloadplan9front-58861fff63a8d2a89f6087b964140482337e3a9d.tar.xz
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.
Diffstat (limited to 'rc')
-rwxr-xr-xrc/bin/window1
1 files changed, 1 insertions, 0 deletions
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 >/dev/cons >[2]/dev/cons
}
}&
+ exit ''
}
if not {
if(~ $wctl ''){