http://qs1969.pair.com?node_id=545579


in reply to Re: Create and edit new scripts
in thread Create and edit new scripts

I don't know whether you have had this issue with nedit. If I create a new script from within the editor and save it without closing the edit session and then chmod +x it in the shell I can run it. If I make further changes to the script and save them I can no longer run the script as the permissions revert to rw-r--r-- after the save. If I create the file outside of nedit with execute permissions and then start editing, nedit doesn't trample on the permissions during the edit/save/test/edit ... cycle. This was one of the reasons for writing "newscript".

Thank you for your reply, it has given me useful pointers to how I can better use nedit.

Cheers,

JohnGG

Replies are listed 'Best First'.
Re^3: Create and edit new scripts
by arkturuz (Curate) on Apr 26, 2006 at 07:42 UTC
    I hadn't have this problem. It works OK for me on Linux system.
    Although, when I run the program from nedit I run it with (binded to Ctrl+Shift+E):
    chmod +x %; %
    '%' stands for current editing file.