From: Ethan Gardener <eekee57@fastmail.fm>
To: 9fans@9fans.net
Subject: Re: [9fans] rc scripts, how to get spaces in array elements generated by command output?
Date: Sun, 6 Jan 2019 14:34:23 +0000 [thread overview]
Message-ID: <1546785263.3598895.1626884120.3B6F5B68@webmail.messagingengine.com> (raw)
In-Reply-To: <20190105235228.GA21088@alice>
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
prev parent reply other threads:[~2019-01-06 14:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-05 21:13 Mack Wallace
2019-01-05 23:52 ` Anthony Martin
2019-01-06 1:05 ` Mack Wallace
2019-01-06 14:34 ` Ethan Gardener [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1546785263.3598895.1626884120.3B6F5B68@webmail.messagingengine.com \
--to=eekee57@fastmail.fm \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).