[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shell-init: error retrieving current directory: getcwd: cannot acces
From: |
Chet Ramey |
Subject: |
Re: shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied |
Date: |
Thu, 17 Jul 2008 08:16:52 -0400 |
> *"You might be able to avoid the need for the getcwd call at startup by
> exporting PWD*"
>
> Sorry,would you give us more details about how to avoid the "error" message
export PWD
Bash performs a check at startup in which it compares $PWD to `.' and skips
the call to getcwd if the two refer to the same device and inode. File
permissions may still keep you from being able to stat $PWD, but it's worth
a shot.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU chet@case.edu http://tiswww.tis.case.edu/~chet/