summaryrefslogtreecommitdiff
path: root/sys/src/cmd/rc/code.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-11-18 04:56:48 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2018-11-18 04:56:48 +0100
commitb6251bff913972b5dfb421813fe97a5bfff3627f (patch)
tree178e82fd271108762b93be4797d77df6d26abb72 /sys/src/cmd/rc/code.c
parent196da4ec6f429683a351312d1f0bcb05847e7f89 (diff)
rc: implement $"x in terms of Xdol() and new Xqw() instruction
to get $"1 right, remove Xqdol() and instead implement it in terms of Xdol() instruction and use the new Xqw() instruction to quote the resulting list.
Diffstat (limited to 'sys/src/cmd/rc/code.c')
-rw-r--r--sys/src/cmd/rc/code.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/src/cmd/rc/code.c b/sys/src/cmd/rc/code.c
index 927273275..4a415bd54 100644
--- a/sys/src/cmd/rc/code.c
+++ b/sys/src/cmd/rc/code.c
@@ -96,8 +96,10 @@ outcode(tree *t, int eflag)
break;
case '"':
emitf(Xmark);
+ emitf(Xmark);
outcode(c0, eflag);
- emitf(Xqdol);
+ emitf(Xdol);
+ emitf(Xqw);
break;
case SUB:
emitf(Xmark);