]> git.lizzy.rs Git - plan9front.git/commitdiff
window: fix error exit with the -m flag
authorkvik <kvik@a-b.xyz>
Wed, 16 Sep 2020 11:12:13 +0000 (13:12 +0200)
committerkvik <kvik@a-b.xyz>
Wed, 16 Sep 2020 11:12:13 +0000 (13:12 +0200)
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

index f1425d14497b9a9e775fff4de05d69a2e7b9e446..06022a127dba05ac5af6545af8d749236cb2aa92 100755 (executable)
@@ -86,6 +86,7 @@ if(~ $#mflag 1) {
                        exec $argv0 -x $cmd </dev/cons >/dev/cons >[2]/dev/cons
                }
        }&
+       exit ''
 }
 if not {
        if(~ $wctl ''){