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

PATCH: (F) note



Might as well make this clear before people start asking...

The answer to the other question is no, it isn't easier the other way
around.  Glob qualifiers necessarily act as boolean selectors, so
there's no single-character way of expressing directory, non-empty
directory, not a directory.

Index: Doc/Zsh/expn.yo
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Zsh/expn.yo,v
retrieving revision 1.47
diff -u -r1.47 expn.yo
--- Doc/Zsh/expn.yo	1 Apr 2004 18:33:22 -0000	1.47
+++ Doc/Zsh/expn.yo	5 Apr 2004 13:09:33 -0000
@@ -1631,7 +1631,10 @@
 directories
 )
 item(tt(F))(
-`full' (i.e. non-empty) directories
+`full' (i.e. non-empty) directories.  Note that the
+opposite sense tt(LPAR()^F)tt(RPAR()) gives files which are
+either empty, or not directories.  Use tt(LPAR()/^F)tt(RPAR()) for
+empty directories
 )
 item(tt(.))(
 plain files

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



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