From: Frank Terbeck <ft@bewatermyfriend.de>
To: zsh users <zsh-users@sunsite.dk>
Subject: Re: confusing passage in zshexpn(1)
Date: Tue, 12 Dec 2006 12:42:50 +0100 [thread overview]
Message-ID: <20061212114250.GE2399@fsst.voodoo.lan> (raw)
In-Reply-To: <200612121043.kBCAhuaT005871@news01.csr.com>
Peter Stephenson <pws@csr.com>:
> Frank Terbeck wrote:
[...]
> > That's because of the trailing parentheses in the globbing pattern.
> > But the manual suggests that this should work.
>
> Well, as Bart pointed out, no it doesn't, it's indicating precedence of
> interpretation and nowhere says it's in the form you need to match a
> file under every possible circumstance.
Yes, that's how I understood it as well in the first place. I thought
the way the person on IRC understood it was reasonable as well. But
it's true that people shouldn't see every sentence as potential
real-life examples.
> But it's easy to add a cautionary note.
Okay. But I hope that won't lead people to demand warning notes for
every little piece of documentation that (treated alone) looks like an
example.
[...]
> > [snip]
> > % file=12222
> > % [[ ${file} == 1(2##) ]] && print match.
> > match.
>
> Do you mean you're suggesting this as an alternative example that would
> actually work?
No! :-) I just didn't know how to express what I wanted to say
properly.
> [...] it's cleaner to write this as 12## anyway, without the
> parentheses. That's why you don't fall over the glob qualifier
> problem in practice: you only need the parentheses when there are
> #'s after them.
Yes, that was my reply on IRC as well. I was just confused and didn't
think close enough before posting.
> By the way, if you feel yourself susceptible to problems like this,
> you can set both NO_BARE_GLOB_QUAL and EXTENDED_GLOB and use (#q...) for
> glob qualifiers.
No, I don't. But thank you anyway. :)
Regards, Frank
--
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
-- RFC 1925
prev parent reply other threads:[~2006-12-12 11:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-12 0:21 Frank Terbeck
2006-12-12 4:01 ` Bart Schaefer
2006-12-12 11:31 ` Frank Terbeck
2006-12-12 15:31 ` Bart Schaefer
2006-12-12 10:43 ` Peter Stephenson
2006-12-12 11:42 ` Frank Terbeck [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=20061212114250.GE2399@fsst.voodoo.lan \
--to=ft@bewatermyfriend.de \
--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).