From: "Bart Schaefer" <schaefer@brasslantern.com>
To: The Doctor What <docwhat@gerf.org>, zsh-users@sunsite.dk
Subject: Re: ZSH 3.0.8 and modifiers
Date: Fri, 25 Jan 2002 08:59:10 +0000 [thread overview]
Message-ID: <1020125085910.ZM2110@candle.brasslantern.com> (raw)
In-Reply-To: <20020124215304.B32699@gerf.org>
On Jan 24, 9:53pm, The Doctor What wrote:
} Subject: ZSH 3.0.8 and modifiers
}
} path=( ${$path}(/N) )
I presume you mean ${^path}, as ${$path} gives "bad substitution" in
4.0.x and expands to the PID (i.e., ${$}, i.e., $$) in 3.0.x.
} But under 3.0.8 (on my Darwin/OS X iBook) it produces an array
} with the string (/N) appended to each item. Is there something I'm
} missing?
In 3.0.8, a trailing parenthesized string is not interpreted as glob
qualifiers unless there is at least one other globbing special char
in the rest of the string. Brace expansions, including RC_EXPAND_PARAM,
are NOT considered to be globbing characters.
In 4.0.x, using brace expansion or RC_EXPAND_PARAM is sufficient to
cause the trailing the parens to be interpreted as qualifiers. I have
forgotten when or why this change was made.
The usual workaround is to insert an empty alternation pattern into
the string, like so:
path=( ${^path}(|)(/N) )
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
prev parent reply other threads:[~2002-01-25 8:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-25 3:53 The Doctor What
2002-01-25 8:59 ` 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=1020125085910.ZM2110@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=docwhat@gerf.org \
--cc=zsh-users@sunsite.dk \
/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).