Re, Debian bug #593447:
http://bugs.debian.org/593447
I propose the following patch:
http://git.debian.org/?p=pkg-octave/qtoctave.git;a=blob;f=debian/patches/fix-exec-script-in-editor;h=371f12bb42e406ee2d173f81be4050f38b3cb19b;hb=cc713075f9762004fcdcd9a55c9a97ecfe0642ef
HTH,
- Jordi G. H.