diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-12-31 23:26:59 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-12-31 23:26:59 +0000 |
commit | 2025214dfcc46ac16cb93abc05b344330987b339 (patch) | |
tree | d121ec515b81006a5272bc1c7fadf93fb4cf4392 /sys/src/cmd/rc/pcmd.c | |
parent | d0c9127b10251d85b56eba00bc586b57dd998aaf (diff) |
rc: fix here document handling with quoted end-marker (thanks sigrid)
when end marker is quoted, we should not substitute.
also, pcmd() needs to print the end marker without quotes.
Diffstat (limited to 'sys/src/cmd/rc/pcmd.c')
-rw-r--r-- | sys/src/cmd/rc/pcmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/rc/pcmd.c b/sys/src/cmd/rc/pcmd.c index 67edaf856..0e51c0d4a 100644 --- a/sys/src/cmd/rc/pcmd.c +++ b/sys/src/cmd/rc/pcmd.c @@ -147,7 +147,7 @@ pcmd(io *f, tree *t) } pfmt(f, "%t", c0); if(t->rtype == HERE) - pfmt(f, "\n%s%t\n", t->str, c0); + pfmt(f, "\n%s%s\n", t->str, c0->str); else if(c1) pfmt(f, " %t", c1); break; |