shithub: riscv

Download patch

ref: 502fe5af32a3d275aa89ffc834157bdbabc45c50
parent: b293372ee1f55c5583df0574ed6613ede5acf788
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);