From: Bart Schaefer <schaefer@brasslantern.com>
To: Peter Stephenson <pws@pwstephenson.fsnet.co.uk>, zsh-users@sunsite.dk
Subject: Re: Zsh Guide chapter 5 (substitutions)
Date: Tue, 21 Aug 2001 16:38:43 +0000 [thread overview]
Message-ID: <1010821163843.ZM21870@candle.brasslantern.com> (raw)
In-Reply-To: <1010820182638.ZM20357@candle.brasslantern.com>
On Aug 20, I wrote:
}
} Might be worth pointing out here or elsewhere that (#i)~/foo does NOT
} mean ~(#i)/foo, but rather means (#i)(|)~/foo
}
} Gotta stop now, back later for sections 5.9.7 and later.
And lo, in 5.9.7 PWS says:
print (#i)~/.Z*
doesn't work.
That doesn't say what it does do, though.
A little bit above that:
You can put the flags at any point in the pattern, and they last either
till the end, so in
The "either" lacks an "or."
Then I've got nothing until way down under zmv, where:
[[ $f1 = (#b)${~pattern} ]] || next
That "next" should be a "continue". (I myself am on the verge of
`alias next=continue' because I've been writing so much Perl at work
lately.)
And that's all, except that I'm left puzzling over this:
The other tricky point is the use of double quotes in the eval. That
means that if the second argument has a double quote in it, the shell
will get very confused.
This refers to:
eval "f2=\"$result\""
I'm left wondering whether
f2=${(e)result}
wouldn't be equivalent and avoid the need for the double quotes?
--
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
next prev parent reply other threads:[~2001-08-21 16:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-15 23:00 Peter Stephenson
2001-08-16 2:31 ` Bart Schaefer
2001-08-17 16:55 ` Bart Schaefer
2001-08-20 18:26 ` Bart Schaefer
2001-08-20 18:35 ` Phil Pennock
2001-08-21 16:38 ` Bart Schaefer [this message]
2001-08-21 14:21 ` Richard Curnow
2001-08-21 15:34 ` Bart Schaefer
2001-08-22 17:10 martin.ebourne
2001-08-23 7:30 ` Borsenkow Andrej
2001-08-23 7:41 ` Borsenkow Andrej
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=1010821163843.ZM21870@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=pws@pwstephenson.fsnet.co.uk \
--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).