[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

PATCH 5.005_63 Document super-obscure feature of chdir()




This patch documents the behavior of chdir() when invoked with no
arguments.  The behavior that has been unchanged since perl 1.


--- pod/perlfunc.pod	1999/12/27 17:12:53	1.1
+++ pod/perlfunc.pod	2000/01/27 14:08:21	1.2
@@ -539,8 +539,10 @@
 =item chdir EXPR
 
 Changes the working directory to EXPR, if possible.  If EXPR is omitted,
-changes to the user's home directory.  Returns true upon success,
-false otherwise.  See the example under C<die>.
+changes to the directory specified by C<$ENV{HOME}>, if set; if not,
+changes to the directory specified by C<$ENV{LOGDIR}>.  If neither is
+set, C<chdir> does nothing.  It returns true upon success, false
+otherwise.  See the example under C<die>.
 
 =item chmod LIST
 


[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]