bugGNU Octave - Bugs: bug #40488, 'edit' may overwrite (package)...

 
 

bug #40488: 'edit' may overwrite (package) functions when called with full path

Submitted by:  Markus Appel <mappel>
Submitted on:  Wed 06 Nov 2013 10:20:33 AM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Feature Request
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 16 Nov 2013 04:51:11 PM UTC, comment #1:

I can confirm this bug in Octave 3.6.4 but testing with version 3.7.7+ (I don't remember the cset used to build it but was a few days ago) it's already fixed.

Carnë Draug <carandraug>
Project Member
Wed 06 Nov 2013 10:20:33 AM UTC, original submission:

I guess 'edit' was not meant to be called with a full path, but I was curious and wanted to have a look into the private function 'chunk_parcellfun.m' of the general package. As it is not found by edit because it's private, I wanted to take a shortcut by typing

into my octave terminal session where my edit configuration is

I ended up with gedit editing a completely empty new file named 'chunk_parcellfun.m' in a path '[current_path]/~/octave/general-1.3.2/private'. When I looked at the original file ~/octave/general-1.3.2/private/chunk_parcellfun.m I found it overwritten by an empty function called '~/octave/general-1.3.2/private/chunk_parcellfun' with my copyright info on top. Btw, the same happens if I try to edit not private package functions with full path.

Maybe edit should be more careful when given a full path (which may include tilde)?

Markus Appel <mappel>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mappel (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 16 Nov 2013 04:51:11 PM UTCcarandraugStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1