octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #42620] exist() does not use "class" argument


From: Rik
Subject: [Octave-bug-tracker] [bug #42620] exist() does not use "class" argument
Date: Mon, 22 Nov 2021 14:27:20 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36

Follow-up Comment #10, bug #42620 (project octave):

The note in Matlab documentation is "MATLAB does not examine the contents or
internal structure of a file and relies solely on the file extension for
classification.".

Now, maybe that is out of date and they actually do some parsing.  For
"inputParser", the "class" argument changes the output value from 2 to 8.  It
does not have that effect on a normal m-fil.  I tried


exist ('ls')
exist ('ls', 'class')


and the first invocation returns 2 while the second invocation returns 0.

If there is more work to be done on exist() then I would file a different bug
report about it.

For the specific case of "+foopkg/foopkg.m" and a file "foopkg.m" elsewhere in
the function search list Matlab seems to say that the return value is decided
by order in the path().

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?42620>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]