zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Pier Paolo Grassi <pierpaolog@gmail.com>
Cc: Roman Perepelitsa <roman.perepelitsa@gmail.com>,
	Mikael Magnusson <mikachu@gmail.com>,
	 Zsh-Users List <zsh-users@zsh.org>
Subject: Re: field splitting
Date: Wed, 22 Apr 2020 11:14:41 -0700	[thread overview]
Message-ID: <CAH+w=7aQVhTbaiGb8-OAXC4sghvhPOncg8DbaNWC48R5SvO6WA@mail.gmail.com> (raw)
In-Reply-To: <CAP+y1xCRipQx3WJF83JFYRGSmFtTW0ZzSUijLLXWW5upXnst4Q@mail.gmail.com>

On Wed, Apr 22, 2020 at 10:54 AM Pier Paolo Grassi <pierpaolog@gmail.com> wrote:
>
> so it's a bug in that version? this is the zsh that comes with ubuntu xenial

It's intentional behavior; the newer version provides an alternate
behavior that is closer to what you want.

The workaround in older versions of zsh is to use a dummy array
variable:   ${${(As: :)dummy::=$line}[1]}

  parent reply	other threads:[~2020-04-22 18:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-22 16:43 Pier Paolo Grassi
2020-04-22 16:47 ` Mikael Magnusson
2020-04-22 17:11   ` Pier Paolo Grassi
2020-04-22 17:18     ` Roman Perepelitsa
2020-04-22 17:46       ` Pier Paolo Grassi
2020-04-22 17:51         ` Roman Perepelitsa
2020-04-22 17:53           ` Pier Paolo Grassi
2020-04-22 18:04             ` Roman Perepelitsa
2020-04-22 18:18               ` Pier Paolo Grassi
2020-04-22 18:14             ` Bart Schaefer [this message]
2020-04-22 18:20               ` Pier Paolo Grassi

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=7aQVhTbaiGb8-OAXC4sghvhPOncg8DbaNWC48R5SvO6WA@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=mikachu@gmail.com \
    --cc=pierpaolog@gmail.com \
    --cc=roman.perepelitsa@gmail.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).