zsh-users
 help / color / mirror / code / Atom feed
* negative pattern doesn't match empty string in globbing?
@ 2014-09-19  8:04 Han Pingtian
  2014-09-19  9:55 ` Peter Stephenson
  2014-09-19 10:02 ` Peter Stephenson
  0 siblings, 2 replies; 3+ messages in thread
From: Han Pingtian @ 2014-09-19  8:04 UTC (permalink / raw)
  To: zsh-users

Hello,

I just notice that negative pattern like this doesn't work:

    localhost% setopt extendedglob
    localhost% print /usr/**/bin/zsh
    /usr/bin/zsh /usr/local/bin/zsh
    localhost% print /usr/^local/bin/zsh
    zsh: no matches found: /usr/^local/bin/zsh
    localhost% ls /usr//bin/zsh
    /usr//bin/zsh
    localhost% 

I think if "^local" can match with empty string, then this should work.
But looks like it doesn't.


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

end of thread, other threads:[~2014-09-19 10:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-19  8:04 negative pattern doesn't match empty string in globbing? Han Pingtian
2014-09-19  9:55 ` Peter Stephenson
2014-09-19 10:02 ` Peter Stephenson

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