summaryrefslogtreecommitdiff
path: root/sys/src
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2022-10-05 01:42:53 +0000
committerMichael Forney <mforney@mforney.org>2022-10-05 01:42:53 +0000
commit502fe5af32a3d275aa89ffc834157bdbabc45c50 (patch)
tree3496e178abbb2ef63d486dc80218d298c6be1632 /sys/src
parentb293372ee1f55c5583df0574ed6613ede5acf788 (diff)
vt: quote special characters in command arguments
These arguments are interpreted by rc, so use needsrcquote to quote them properly.
Diffstat (limited to 'sys/src')
-rw-r--r--sys/src/cmd/vt/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/cmd/vt/main.c b/sys/src/cmd/vt/main.c
index c6ec70976..32743c792 100644
--- a/sys/src/cmd/vt/main.c
+++ b/sys/src/cmd/vt/main.c
@@ -299,6 +299,7 @@ threadmain(int argc, char **argv)
if(rfork(RFENVG) < 0)
sysfatal("rfork: %r");
+ doquote = needsrcquote;
quotefmtinstall();
notify(catch);
atexit(shutdown);