From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20742 invoked from network); 16 Dec 2020 21:53:26 -0000 Received: from ewsd.inri.net (107.191.116.128) by inbox.vuxu.org with ESMTPUTF8; 16 Dec 2020 21:53:26 -0000 Received: from mimir.eigenstate.org ([206.124.132.107]) by ewsd; Wed Dec 16 16:52:20 -0500 2020 Received: from abbatoir.fios-router.home (pool-74-101-2-6.nycmny.fios.verizon.net [74.101.2.6]) by mimir.eigenstate.org (OpenSMTPD) with ESMTPSA id 30fc6736 (TLSv1.2:ECDHE-RSA-AES256-SHA:256:NO); Wed, 16 Dec 2020 13:52:12 -0800 (PST) Message-ID: <0F525CBFB1204B0572F197D1BC37058A@eigenstate.org> To: sirjofri+ml-9front@sirjofri.de To: 9front@9front.org Date: Wed, 16 Dec 2020 13:52:11 -0800 From: ori@eigenstate.org In-Reply-To: <091fb09e-1c49-45df-a145-7519e7380848@sirjofri.de> 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: wrapper blockchain-oriented controller Subject: Re: [9front] [PATCH] Update hpost to use -r header like hget Reply-To: 9front@9front.org Precedence: bulk Quoth sirjofri : > > The whole thing is indeed an interesting challenge, especially because rc > is handling items and lists so special. Spaces don't necessarily separate > strings, items with spaces are not always quoted, etc. For example, the > visual string "this is a string" is not always a list with 3 strings. It > could also be a list with two or only one string. there's no sometimes about it, and there aren't any funny rules. rc never requotes something behind your back; it parses it once, and keeps it parsed. evaluating the output of `{} is the place where it parses it. All other times, it stays split. > "this is a string" is not always a list with 3 strings. no, that's always a string with 4 strings: '"this' 'is' 'a' 'string"' Note that " is not a special character, so it doesn't affect string splitting. I suspect you meant 'this is a string' which is *always* a single string to rc.