help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: Using file lines as "input files"
Date: Sat, 9 Jul 2022 20:27:30 -0700	[thread overview]
Message-ID: <CAH+w=7aXO2bvU_XAJWqL9a4bNWtbnLpE-D878AKiT3Xe71MnUA@mail.gmail.com> (raw)
In-Reply-To: <YsogYlt8Tfpjc6PI@gmx.de>

On Sat, Jul 9, 2022 at 5:42 PM Dominik Vogt <dominik.vogt@gmx.de> wrote:
>   $ foo[9]=''
>   $ setopt shwordsplit
>   $ echo x^foo
>   x x

Er, missing a $ there?

Anyway ...

% foo[9]=z
Macadamia% print -l x${^=foo}y

The leading "nonexistent" elements become one word, and the remaining
element with a value becomes another.  I'm not sure why that happens.

  parent reply	other threads:[~2022-07-10  3:28 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 [this message]
2022-07-10 17:49           ` Bart Schaefer

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH+w=7aXO2bvU_XAJWqL9a4bNWtbnLpE-D878AKiT3Xe71MnUA@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \


* 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


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).