zsh-workers
 help / color / mirror / code / Atom feed
* bug in patterns used for filename expansion (e.g. a[b/c]d)
@ 2007-10-09 12:40 Vincent Lefevre
  2007-10-09 12:59 ` Peter Stephenson
  0 siblings, 1 reply; 8+ messages in thread
From: Vincent Lefevre @ 2007-10-09 12:40 UTC (permalink / raw)
  To: zsh-workers

zsh 4.3.4 isn't POSIX-compliant concerning filename expansion and
unmatched [. POSIX[*] says:

  For example, the pattern "a[b/c]d" does not match such pathnames as
  abd or a/d. It only matches a pathname of literally a[b/c]d.

[*] http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_13_03

But with zsh 4.3.4:

prunille% ls a[b/c]d
zsh: no matches found: a[b/c]d

while the file exists (no problem with bash, dash or ksh93). For more
information, see the following thread:

https://www.opengroup.org/sophocles/show_archive.tpl?source=L&listname=austin-group-l&first=1&pagesize=80&searchstring=Defect+in+XCU+2.13.3&zone=G

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


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

end of thread, other threads:[~2007-10-09 16:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-09 12:40 bug in patterns used for filename expansion (e.g. a[b/c]d) Vincent Lefevre
2007-10-09 12:59 ` Peter Stephenson
2007-10-09 14:12   ` Vincent Lefevre
2007-10-09 14:46     ` Peter Stephenson
2007-10-09 15:24     ` Bart Schaefer
2007-10-09 16:00       ` Vincent Lefevre
2007-10-09 15:00   ` Stephane Chazelas
2007-10-09 15:30     ` Bart Schaefer

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