zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Clint Priest <cpriest@zsh-users.rxv.me>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Understanding why...
Date: Mon, 7 Aug 2017 22:25:47 -0700	[thread overview]
Message-ID: <CAH+w=7YnQGfcTvvzwqRhAPw-2fAC=nOu=LcH-EBa_SE6CU4nsQ@mail.gmail.com> (raw)
In-Reply-To: <d90abb51-c3f5-8385-8259-07bff97db2e6@zsh-users.rxv.me>

On Mon, Aug 7, 2017 at 6:26 PM, Clint Priest <cpriest@zsh-users.rxv.me> wrote:
> Interesting, when you say by default, is that an option that can be changed?

When I say "by default", I mean "you change it by adding (@)".

> Thanks for that tidbit, any chance you know in the manual whereabouts it
> talks about this inner splitting and outer preservation?

>> On 8/7/2017 7:36 PM, Bart Schaefer wrote:
>> e.g., search for the string "Rules" in "man zshexpn".

> Also (and I had tried to do this), is it possible to break out the nested
> expansions into their separate parts to see what is going on (via trace)?

Sure; setopt xtrace and then compare

: ${(s/:/)${LS_COLORS%:}}
: ${(s/=/)${(s/:/)${LS_COLORS%:}}}
: ${(@s/=/)${(s/:/)${LS_COLORS%:}}}

(where ":" is the no-op command that discards its arguments)


      reply	other threads:[~2017-08-08  5:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-07 23:46 Clint Priest
2017-08-08  0:36 ` Bart Schaefer
2017-08-08  1:26   ` Clint Priest
2017-08-08  5:25     ` 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=7YnQGfcTvvzwqRhAPw-2fAC=nOu=LcH-EBa_SE6CU4nsQ@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=cpriest@zsh-users.rxv.me \
    --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).