git: 9front

Download patch

ref: 9307052423dfd44e9177ddc0f700326bfb104f3f
parent: 480368228d760fdea1ae4be299f9d0716f32a2c7
author: Michael Forney <mforney@mforney.org>
date: Tue Oct 4 21:42:53 EDT 2022

vt: quote special characters in command arguments

These arguments are interpreted by rc, so use needsrcquote to quote
them properly.

--- a/sys/src/cmd/vt/main.c
+++ b/sys/src/cmd/vt/main.c
@@ -299,6 +299,7 @@
 
 	if(rfork(RFENVG) < 0)
 		sysfatal("rfork: %r");
+	doquote = needsrcquote;
 	quotefmtinstall();
 	notify(catch);
 	atexit(shutdown);
--