shithub: riscv

Download patch

ref: 58861fff63a8d2a89f6087b964140482337e3a9d
parent: 537443d959984163040907d6287ac6ec3cbdc781
author: kvik <kvik@a-b.xyz>
date: Wed Sep 16 09:12:13 EDT 2020

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.

--- a/rc/bin/window
+++ b/rc/bin/window
@@ -86,6 +86,7 @@
 			exec $argv0 -x $cmd </dev/cons >/dev/cons >[2]/dev/cons
 		}
 	}&
+	exit ''
 }
 if not {
 	if(~ $wctl ''){