zsh-users
 help / color / mirror / code / Atom feed
* confusing passage in zshexpn(1)
@ 2006-12-12  0:21 Frank Terbeck
  2006-12-12  4:01 ` Bart Schaefer
  2006-12-12 10:43 ` Peter Stephenson
  0 siblings, 2 replies; 6+ messages in thread
From: Frank Terbeck @ 2006-12-12  0:21 UTC (permalink / raw)
  To: zsh users

Hi list,

Someone on IRC wondered about a problem with the following passage in
zshexpn(1):

[snip]
 x##    (Requires EXTENDED_GLOB to be set.) Matches one or more occur-
        rences of the pattern x. This operator has high precedence;
        '12##' is equivalent to '1(2##)', rather than '(12)##'. No
        more than two active '#' characters may appear together.
[snap]

Because of this part of the manual he tried this:
% setopt EXTENDED_GLOB; touch 12222; echo 1(2##)
zsh: unknown file attribute

That's because of the trailing parentheses in the globbing pattern.
But the manual suggests that this should work.

How could this be included in the manual?
How could the fact be included, that this pattern is okay to use in
the following position?

[snip]
% file=12222
% [[ ${file} == 1(2##) ]] && print match.
match.
[snap]

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-12-12 15:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-12  0:21 confusing passage in zshexpn(1) 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

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).