zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: [PATCH] explicitly mention ${name:/pat/repl}
Date: Tue, 8 Nov 2016 22:39:34 -0800	[thread overview]
Message-ID: <161108223934.ZM12195@torch.brasslantern.com> (raw)
In-Reply-To: <20161109051419.GA21675@fujitsu.shahaf.local2>

On Nov 9,  5:14am, Daniel Shahaf wrote:
} Subject: Re: [PATCH] explicitly mention ${name:/pat/repl}
}
} Bart Schaefer wrote on Tue, Nov 08, 2016 at 10:10:43 -0800:
} > -The first `tt(/)' may be preceded by a `tt(:)', in which case the match
} > -will only succeed if it matches the entire word.  Note also the
} > +If tt(${)var(name)tt(}) expands to an array value, the replacements act
} > +on each element individually.  Quoting may affect this.  Note also the
} 
} "Quoting may affect this"?  This leaves me wondering what the effect is
} and under what circumstances it happens.

It just means that if you quote the expansion, it won't necessarily
be an array any more.  There are too many ways this could happen to
enumerate them all every time it might apply.


  reply	other threads:[~2016-11-09 10:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-08 18:10 Bart Schaefer
2016-11-09  5:14 ` Daniel Shahaf
2016-11-09  6:39   ` Bart Schaefer [this message]
2016-11-09  7:22     ` Bart Schaefer
2016-11-09 17:10       ` Daniel Shahaf

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=161108223934.ZM12195@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@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).