
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] funny error msg
>>>>> "BR" == Brett Robson <b-robson@example.com> writes:
BR> [...]
BR> Unable to open directory .
BR> Reason: Directory does not exist
BR> I am sure there is a good reason (eg permissions) for this,
BR> but you have to wonder how it's possible . can't exist?
Sometimes simplicity of UNIX doesn't mix well with logic... If I
change to /tmp/a/ in one shell and then remove it from another, the
former shell, strangely enough, will not notice that the directory
is gone:
bash-2.05b$ pwd
/tmp/a
bash-2.05b$ ls
bash-2.05b$
bash-2.05b$ ls `pwd`
ls: /tmp/a: No such file or directory
bash-2.05b$ if [ -d . ]; then echo `pwd` exists; fi
/tmp/a exists
bash-2.05b$ if [ -d /tmp/a ]; then echo `pwd` exists; fi
bash-2.05b$
--
Viktor
Home |
Main Index |
Thread Index