Can't install a package in 3.1.53ff
Thomas Treichl
Thomas.Treichl at gmx.net
Sun Mar 8 15:46:37 CDT 2009
Søren Hauberg schrieb:
> søn, 08 03 2009 kl. 21:33 +0100, skrev Thomas Treichl:
>> Hhhmmm, seems to be, I'll look inside of it. I just wonder why the command wants
>> to open/create/whatever a "DOC" directory, I would understand that there should
>> be accessed a "doc" (lower case letters) but this would mean that this is also
>> the the directory of the package documentation itself - do I understand this
>> correctly?
>
> "DOC" is a file that contains the help texts of all the functions in the
> package. This is used as a cache by 'lookfor' to speed things up (it
> takes about a second or two to call 'lookfor' with this; in 3.0.x this
> took about a minute).
Then I think we already found the bug. On Macs, if there exists a directory
'doc' then this is the same as 'dOc', 'DOC' etc. from the system's view (not the
filesystem's view).
The filesystem saves upper and lower case letter files/directories correctly,
but for accessing these files/directories I can mix upper and lower case letters
like I want. For example,
/tmp Thomas$ ls -l
/tmp Thomas$ mkdir MyDir
/tmp Thomas$ ls -l
total 0
drwxr-xr-x 2 Thomas wheel 68 Mar 8 21:42 MyDir
/tmp Thomas$ cd mydir
/tmp/mydir Thomas$ cd ..
/tmp Thomas$ cd MYDIR
/tmp/MYDIR Thomas$ cd ..
/tmp Thomas$ ls -l
total 0
drwxr-xr-x 2 Thomas wheel 68 Mar 8 21:42 MyDir
/tmp Thomas$
Ie. once again, you cannot create a 'DOC' file if a 'doc' directory already
exists. I expect 'DOC' should either become something else or we need special
tretments on Macs.
Thomas
More information about the Bug-octave
mailing list