bug in edit.m
Ben Abbott
bpabbott at mac.com
Tue Jan 15 17:27:14 CST 2008
On Jan 15, 2008, at 6:11 PM, John W. Eaton wrote:
> On 15-Jan-2008, Ben Abbott wrote:
>
> | Should we consider the manner that Matlab handles this?.
>
> Sure. I propose that in the future, we simply write "WWMD?" or
> "WDMD?" to ask this question. OK, I'm only half serious about that.
>
> | On my system, Matlab will open the file in place even if it is
> *read-
> | only*. I like that feature since I use source control. If I make
> | changes, I only have to check it out before trying to save it.
> |
> | In the event, you "edit <somefile>" and <somefile> does not exist in
> | the path, then Matlab opens the file in the pwd.
> |
> | Thoughts?
>
> I see
>
> edit /foo.m %% / exists, but no write access; opens ./foo.m
> instead
>
> edit /bar/foo.m %% /bar does not exist => error
>
> jwe
Regarding the 1st, from Matlab 2007b, the command below opens the file
in its original path, but as "Read Only".
>> edit /sw/share/octave/3.0.0+/m/polynomial/residue.m
However, if I try to open a non-existent file ...
>> edit /bar/foo.m
??? Error using ==> edit>handleError at 462
File '/bar/foo.m' not found.
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080115/5b08913f/attachment-0001.html
More information about the Bug-octave
mailing list