From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <1546785263.3598895.1626884120.3B6F5B68@webmail.messagingengine.com> From: Ethan Gardener To: 9fans@9fans.net MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" Date: Sun, 6 Jan 2019 14:34:23 +0000 In-Reply-To: <20190105235228.GA21088@alice> References: <72B9C1DF-7927-4F58-9529-3DC122DEF47C@mapinternet.com> <20190105235228.GA21088@alice> Subject: Re: [9fans] rc scripts, how to get spaces in array elements generated by command output? Topicbox-Message-UUID: f2c793ac-ead9-11e9-9d60-3106f5b1d025 On Sat, Jan 5, 2019, at 11:52 PM, Anthony Martin wrote: > You need to change the input field separator, $ifs. Yep, that was the only way to do it for a long time. There is now a patch for a shortcut: var=`"{cmd} The patch is incorporated in current 9front. Example run: term% foo=`"{echo a b c}; echo $foo(1) a b c