diff options
author | kvik <kvik@a-b.xyz> | 2020-09-16 13:12:13 +0200 |
---|---|---|
committer | kvik <kvik@a-b.xyz> | 2020-09-16 13:12:13 +0200 |
commit | 58861fff63a8d2a89f6087b964140482337e3a9d (patch) | |
tree | df1ee8d50d792caa11e76927db720927cd6118a3 /rc | |
parent | 537443d959984163040907d6287ac6ec3cbdc781 (diff) | |
download | plan9front-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-x | rc/bin/window | 1 |
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 ''){ |