Add a New Comment (Rich Markup)
Comment Type & Canned Response: None None > Multiple Canned Responses Fixed in development Crash with no stack trace Already fixed in newer version Fixed in stable Bad description Bad description and crash Bad stack trace Obsolete version Duplicate and not fixed Duplicate and needs more info Duplicate and fixed Need info and old
When calling "which" for a function that cannot be parsed, an error is thrown. In Octave 4.4.1 and a recent dev:
>> which test_wrong parse error near line 1 of file D:\temp\test_wrong_syntax.m syntax error >>> function 5 = test_wrong_syntax() ^ error: called from which at line 34 column 5
Matlab doesn't throw an error when calling "which" for this file:
>> type test_wrong_syntax function 5 = test_wrong_syntax() end >> test_wrong_syntax Error: File: test_wrong_syntax.m Line: 1 Column: 10 Unexpected MATLAB expression. >> which test_wrong_syntax D:\temp\test_wrong_syntax.m >>
Also in Octave:
>> which test_wrong_syntax.m 'test_wrong_syntax.m' is the file D:\temp\test_wrong_syntax.m
See also bug #54600 where Pantxo wrote: "Personally, what I want when I use "which fcn" is Octave to answer the question "In which file will you search for the definition of fcn?"." to which I agree.
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only project members can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 4 latest changes.
Copyright © 2022 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.9