[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40488] 'edit' may overwrite (package) functio
From: |
Markus Appel |
Subject: |
[Octave-bug-tracker] [bug #40488] 'edit' may overwrite (package) functions when called with full path |
Date: |
Wed, 06 Nov 2013 10:20:34 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0 |
URL:
<http://savannah.gnu.org/bugs/?40488>
Summary: 'edit' may overwrite (package) functions when called
with full path
Project: GNU Octave
Submitted by: mappel
Submitted on: Wed 06 Nov 2013 10:20:33 AM GMT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Feature Request
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
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
edit ~/octave/general-1.3.2/private/chunk_parcellfun.m
into my octave terminal session where my edit configuration is
edit get all
ans =
scalar structure containing the fields:
EDITOR = gedit -b %s
HOME = /home/mappel/octave
AUTHOR = Markus Appel
EMAIL = <address@hidden>
LICENSE = GPL
MODE = async
EDITINPLACE = 0
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)?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40488>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #40488] 'edit' may overwrite (package) functions when called with full path,
Markus Appel <=