[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: PATCH 5.005_63 Document super-obscure feature of chdir()
On Thu, Jan 27, 2000 at 02:33:26PM -0700, Tom Christiansen wrote:
> >But the explicit algorithm should be mentioned too, since "home
> >directory" is a concept with a very narrow scope. (Which is a pity...)
>
> I really don't think it should be spelt out. I don't want to lock
> us in in case the VMS people have their own notions, for example.
>
> =item chdir [EXPR]
>
> This function changes the current process's working directory
> to I<EXPR>, if possible. If I<EXPR> is omitted, the caller's
> home directory is used. The function returns true upon success,
> false otherwise, with the error code in C<$!>.
>
> chdir "$prefix/lib" or die "Can't cd to $prefix/lib: $!";
>
> See also the standard Cwd module, which lets you keep track of
> your current directory automatically.
I do not see what you want to demonstrate by this example.
And I would hate something like TeXish
"The notion of home directory is system-specific. See your local
documentation for details."
Ilya
- Follow-Ups from:
-
Tom Christiansen <tchrist@chthon.perl.com>
- References to:
-
Tom Christiansen <tchrist@chthon.perl.com>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]