From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: Using file lines as "input files"
Date: Sun, 10 Jul 2022 10:49:49 -0700 [thread overview]
Message-ID: <CAH+w=7bq8pWOJVpPS1Ty=j5oW0Pahoc5Z05sSw=7+5reZxJWgA@mail.gmail.com> (raw)
In-Reply-To: <CAH+w=7aXO2bvU_XAJWqL9a4bNWtbnLpE-D878AKiT3Xe71MnUA@mail.gmail.com>
On Sat, Jul 9, 2022 at 8:27 PM Bart Schaefer <schaefer@brasslantern.com> wrote:
>
> The leading "nonexistent" elements become one word, and the remaining
> element with a value becomes another. I'm not sure why that happens.
In fact any series of "unset" elements becomes an (empty) word.
% foo[9]=x
% foo[18]=''
% unset foo\[18\]
% print $#foo
18
% setopt shwordsplit
% print a${^foo}b
ab axb ab
prev parent reply other threads:[~2022-07-10 17:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-08 20:58 Dominik Vogt
2022-07-08 21:58 ` Mikael Magnusson
2022-07-08 22:04 ` Bart Schaefer
2022-07-08 23:17 ` Dominik Vogt
2022-07-09 2:21 ` Mikael Magnusson
2022-07-10 0:42 ` Dominik Vogt
2022-07-10 0:45 ` Dominik Vogt
2022-07-10 3:27 ` Bart Schaefer
2022-07-10 17:49 ` Bart Schaefer [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='CAH+w=7bq8pWOJVpPS1Ty=j5oW0Pahoc5Z05sSw=7+5reZxJWgA@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=zsh-users@zsh.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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).