bug in edit.m

Ben Abbott bpabbott at mac.com
Mon Jan 14 22:48:16 CST 2008


On Jan 14, 2008, at 10:10 PM, Ben Abbott wrote:

> I tried this sequence
>
> octave:3 >which savepath
> which: `savepath' is the function from the file /sw/share/octave/
> 3.0.0+/m/path/savepath.m
> octave:4> edit savepath
> cp: cannot create regular file `/Users/bpabbott/octave/savepath.m': No
> such file or directory
> path = /Users/bpabbott/octave/savepath.m
>
> My editor showed up empty and pointing at "/Users/bpabbott/octave/
> savepath.m", my pwd was " /Users/bpabbott/octave".
>
> I may have time to look at edit.m at a latter time, but certainly not
> today.
>
> Ben

The problem is that when I try to edit a "readonly" file edit.m  
attempts to open the file in ~/octave.

I have no "octave" directory in that location. Would it not be better  
to open the file in the pwd?

Please consider the attached patch and ChangeLog

Ben


-------------- next part --------------
A non-text attachment was scrubbed...
Name: edit.diff
Type: application/octet-stream
Size: 465 bytes
Desc: not available
Url : https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080114/23ccc5a8/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ChangeLog
Type: application/octet-stream
Size: 186 bytes
Desc: not available
Url : https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080114/23ccc5a8/attachment-0001.obj 


More information about the Bug-octave mailing list