zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: (F) note
@ 2004-04-05 13:26 Peter Stephenson
  2004-04-05 16:07 ` Wayne Davison
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Stephenson @ 2004-04-05 13:26 UTC (permalink / raw)
  To: Zsh hackers list

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@csr.com>                  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
**********************************************************************


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

* Re: PATCH: (F) note
  2004-04-05 13:26 PATCH: (F) note Peter Stephenson
@ 2004-04-05 16:07 ` Wayne Davison
  0 siblings, 0 replies; 2+ messages in thread
From: Wayne Davison @ 2004-04-05 16:07 UTC (permalink / raw)
  To: Peter Stephenson; +Cc: Zsh hackers list

On Mon, Apr 05, 2004 at 02:26:19PM +0100, Peter Stephenson wrote:
> +`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

This sentence makes it sound like zsh is checking for zero-length files.
How about this wording:

... Note that the
opposite sense tt(LPAR()^F)tt(RPAR()) results in both
empty directories and non-directories.  Use tt(LPAR()/^F)tt(RPAR())
for just empty directories.

..wayne..


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

end of thread, other threads:[~2004-04-05 16:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-05 13:26 PATCH: (F) note Peter Stephenson
2004-04-05 16:07 ` Wayne Davison

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