From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mimir.eigenstate.org ([206.124.132.107]) by ewsd; Fri Apr 17 20:08:37 EDT 2020 Received: from abbatoir.fios-router.home (pool-162-83-132-245.nycmny.fios.verizon.net [162.83.132.245]) by mimir.eigenstate.org (OpenSMTPD) with ESMTPSA id 82eb8a99 (TLSv1.2:ECDHE-RSA-AES256-SHA:256:NO) for <9front@9front.org>; Fri, 17 Apr 2020 17:08:29 -0700 (PDT) Message-ID: To: 9front@9front.org Subject: rc: accidenatally merged tokens in pcmd Date: Fri, 17 Apr 2020 17:08:28 -0700 From: ori@eigenstate.org MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: RESTful compliant full-stack map/reduce shader-oriented optimizer BurnZeZ reported this the other day. It seems like if we have a pipeline that looks like: fn foo{cat < <{echo hi}} then the '<' will get merged in /env/'fn#foo'. This change fixes pcmd to add a space. It looks to me like this is the only token that can get merged this way by pcmd, but I'd appreciate someone else taking a look for missed cases: diff -r 627fc39e459f sys/src/cmd/rc/pcmd.c --- a/sys/src/cmd/rc/pcmd.c Fri Apr 17 19:18:28 2020 +0200 +++ b/sys/src/cmd/rc/pcmd.c Fri Apr 17 17:06:25 2020 -0700 @@ -106,6 +106,7 @@ break; case PIPEFD: case REDIR: + pchr(f, ' '); switch(t->rtype){ case HERE: pchr(f, '<');