wm: gchat

Download patch

ref: d90cee2867a92e83f5098021040f816626c9b30c
parent: 375d7fb8b6eee1f02f66136cb0532df757fce724
author: mkf <mkf@x230>
date: Mon Sep 4 09:43:28 EDT 2023

replace cat with $cat

--- a/gchat
+++ b/gchat
@@ -1,6 +1,6 @@
 #!/bin/rc
 # public domain or ISC or MIT
-cat=cat # one might want to use read instead.
+cat=read # one might want to use read instead.
 datefmt='hh:mm'
 server=tcp!cloud9p.org!900
 
@@ -37,7 +37,7 @@
 fn writechat {
 	if(test -w $mnt^$room) {
 		while() {
-			cat >/env/message
+			$cat >/env/message
 			
 			# bs and annoy can be buggy together
 			if(! ~ $bs false && ~ $annoy false)