aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/rc/pcmd.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2020-05-04 22:52:27 -0400
committerRuss Cox <rsc@swtch.com>2020-05-04 23:41:15 -0400
commit3caf5c238a886d06b438ec6d42f2609b8625463f (patch)
treeb72b8b652b2a465eaf8aa1b5940e5192d669a337 /src/cmd/rc/pcmd.c
parent47d4646eebac34c0b94951cfcf1b81ed2ca513e1 (diff)
downloadplan9port-3caf5c238a886d06b438ec6d42f2609b8625463f.tar.gz
plan9port-3caf5c238a886d06b438ec6d42f2609b8625463f.tar.bz2
plan9port-3caf5c238a886d06b438ec6d42f2609b8625463f.zip
rc: move newline handling into parser
Diffstat (limited to 'src/cmd/rc/pcmd.c')
-rw-r--r--src/cmd/rc/pcmd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd/rc/pcmd.c b/src/cmd/rc/pcmd.c
index 26bd883b..cae84737 100644
--- a/src/cmd/rc/pcmd.c
+++ b/src/cmd/rc/pcmd.c
@@ -244,7 +244,10 @@ pcmdu(io *f, tree *t) /* unambiguous */
pfmt(f, "[%d]", t->fd0);
break;
}
- pfmt(f, "%u %u)", c0, c1);
+ if(t->rtype == HERE)
+ pfmt(f, "HERE %u)", c1);
+ else
+ pfmt(f, "%u %u)", c0, c1);
break;
case '=':
pfmt(f, "(%u=%u %u)", c0, c1, c2);