From: Bart Schaefer <schaefer@brasslantern.com>
To: Hannu Koivisto <azure@iki.fi>, zsh-users@sunsite.dk
Subject: Re: Effect of typeset -U for colon separated paths?
Date: Fri, 14 Dec 2001 15:36:58 +0000 [thread overview]
Message-ID: <1011214153659.ZM32027@candle.brasslantern.com> (raw)
In-Reply-To: <87snaet0r5.fsf@lynx.ionific.com>
On Dec 14, 3:00pm, Hannu Koivisto wrote:
}
} BAR=foo:bar:baz
} foo=(${(s:::)BAR}
}
} ...but s expansion flag couldn't split with plain ":" (for
} understandable reasons). I couldn't figure out any working way to
} quote it either.
Andrej has already mentioned "typeset -T", but to quote the doc for the
flags j, l, r, s, etc.:
The following flags (except p) are followed by one or more arguments as
shown. Any character, or the matching pairs `(...)', `{...}', `[...]',
or `<...>', may be used in place of a colon as delimiters, but note
that when a flag takes more than one argument, a matched pair of
delimiters must surround each argument.
So for example:
BAR=foo:bar:baz
foo=(${(s.:.)BAR})
--
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:[~2001-12-14 15:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-14 13:00 Hannu Koivisto
2001-12-14 13:08 ` Borsenkow Andrej
2001-12-14 15:36 ` 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=1011214153659.ZM32027@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=azure@iki.fi \
--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).