* bug on / vs (/) glob qualifiers
@ 1996-10-05 17:07 Geoff Wing
1996-10-05 18:17 ` Zoltan Hidvegi
0 siblings, 1 reply; 2+ messages in thread
From: Geoff Wing @ 1996-10-05 17:07 UTC (permalink / raw)
To: zsh-list
Heyla,
according to the manual:
``A "/" at the end of a pattern is equivalent to "(/)".''
% setopt markdirs
% mkdir foo
% ln -s foo bar
% echo */
bar foo/
% echo *(/)
foo/
It even recognises that bar is not a directory.
--
Geoff Wing [gwing@primenet.com.au] PrimeNet - Internet Consultancy
Web: http://www.primenet.com.au/ Facsimile: +61-3-9819 3788
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: bug on / vs (/) glob qualifiers
1996-10-05 17:07 bug on / vs (/) glob qualifiers Geoff Wing
@ 1996-10-05 18:17 ` Zoltan Hidvegi
0 siblings, 0 replies; 2+ messages in thread
From: Zoltan Hidvegi @ 1996-10-05 18:17 UTC (permalink / raw)
To: Geoff Wing; +Cc: zsh-workers
Geoff Wing wrote:
> Heyla,
> according to the manual:
> ``A "/" at the end of a pattern is equivalent to "(/)".''
Than the manual is wrong. It is equivalent to "(-/)". I'll correct this.
The real bug here is that */ should always add a trailing / to the
generated files. That is necessary for comatibility reason. All other
shells, even csh behaves this way.
Zoltan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-10-05 18:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-10-05 17:07 bug on / vs (/) glob qualifiers Geoff Wing
1996-10-05 18:17 ` Zoltan Hidvegi
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).