[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54887] builtin does not work for m files
From: |
Ceral Paquet |
Subject: |
[Octave-bug-tracker] [bug #54887] builtin does not work for m files |
Date: |
Tue, 23 Oct 2018 12:08:54 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0 |
URL:
<https://savannah.gnu.org/bugs/?54887>
Summary: builtin does not work for m files
Project: GNU Octave
Submitted by: octavebugs
Submitted on: Tue 23 Oct 2018 04:08:52 PM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.4.1
Operating System: GNU/Linux
_______________________________________________________
Details:
While writing wrappers to workaround the missing 'like' keyword (bug #50854
hint hint!), I noticed that the builtin function does not work properly when
used with an m-file.
To give a simple example, take the version.m function.
1. Edit version.m.
2. Insert a line disp('LOCAL')
3. Save in the current directory.
4. Execute the following:
>> version
LOCAL
ans = 4.4.1
>> builtin('version')
LOCAL
ans = 4.4.1
The last command should call the original version.m in
/usr/local/share/octave/4.4.1/m/miscellaneous/
instead of my local copy in /home/ceral/octave/
The same kind of wrapper when used with the zeros command works properly (i.e.
builtin calls the compiled zeros function rather than my zeros.m wrapper).
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?54887>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54887] builtin does not work for m files,
Ceral Paquet <=