Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: globbing in conditional expressions



I think there's a problem with the Y qualifier with subdirectories.

I expect

print */*(NY/)

to find a subdirectory of a subdirectory.  Typically I get nothing.

My first guess was it was short-circuiting too early (on the first
segment), but I can't see any evidence that it works at all if there's a
glob before the last path segment.  For example


% print Completio?/*(NY/)

% print Completion/*(NY/)
Completion/Darwin


pws



Messages sorted by: Reverse Date, Date, Thread, Author