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

PATCH: description of PATH_DIRS option.



While waiting to see if a test fell over, I started writing some more
option tests and fell over this, which looks like it needs documenting,
though I assume it's always been like that.

I suppose it's like this since other shells expect command searches to work
like this.

I intend to commit this to the 4.0 branch, too.

Index: Doc/Zsh/options.yo
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Zsh/options.yo,v
retrieving revision 1.18
diff -u -r1.18 options.yo
--- Doc/Zsh/options.yo	2001/05/15 16:32:20	1.18
+++ Doc/Zsh/options.yo	2001/06/11 10:30:52
@@ -838,12 +838,17 @@
 cindex(path search, extended)
 item(tt(PATH_DIRS) (tt(-Q)))(
 Perform a path search even on command names with slashes in them.
-Thus if `tt(/usr/local/bin)' is in the user's path, and he types
+Thus if `tt(/usr/local/bin)' is in the user's path, and he or she types
 `tt(X11/xinit)', the command `tt(/usr/local/bin/X11/xinit)' will be executed
 (assuming it exists).
 Commands explicitly beginning with `tt(/)', `tt(./)' or `tt(../)'
 are not subject to the path search.
 This also applies to the tt(.) builtin.
+
+Note that subdirectories of the current directory are always searched for
+executables specified in this form.  This takes place before any search
+indicated by this option, and regardless of whether `tt(.)' or the current
+directory appear in the command search path.
 )
 pindex(POSIX_BUILTINS)
 item(tt(POSIX_BUILTINS) <K> <S>)(

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


**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
prohibited.  
If you received this in error, please contact the sender and 
delete the material from any computer.
**********************************************************************



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