From: Han Pingtian <hanpt@linux.vnet.ibm.com>
To: zsh-user <zsh-users@zsh.org>
Subject: What's the 'word' in parameter relpacement expansion?
Date: Fri, 4 Nov 2016 17:00:09 +0800 [thread overview]
Message-ID: <20161104090009.GA22682@localhost.localdomain> (raw)
Hi,
I think
$ a='abc def'
$ print ${a:/def}
will get 'abc ', but it is 'abc def'. So it works just like ${a//#%def}?
The 'entire word' in the document is the same thing of 'entire string'?
In zshexpn:
... or `#%' in which case the pat‐
tern must match the entire string.
The first `/' may be preceded by a `:', in which case the match
will only succeed if it matches the entire word
Thanks in advance!
next reply other threads:[~2016-11-04 9:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20161104090140epcas3p38edbc3a363a05ef5302774d01dced04e@epcas3p3.samsung.com>
2016-11-04 9:00 ` Han Pingtian [this message]
2016-11-04 10:24 ` Peter Stephenson
2016-11-07 2:30 ` Han Pingtian
2016-11-07 3:20 ` 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:
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=20161104090009.GA22682@localhost.localdomain \
--to=hanpt@linux.vnet.ibm.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).