Ecilop
04-14-2007, 12:41 AM
I am a refugee from the now defunct Kanotix, so be gentle please :o
I recently installed to hard disk version 5.1x of Knoppix.
Logged in as "root" I was trying to write a simple BASH script when I encountered the following problem.
1) I created a BASH script called "restoreold.sh"
2) In KDE I right clicked on the file and set the permissions to r/w and executable( important!)
3) I check the permissions in Konqueror to verifiy that the file is indeed executable.
4) I edit the file with Kate or Kwrite and save.
5) When I check the permissions of the file I have just saved in Konqueror the executable status has vanished!! :shock:
6) If I do 1) through 3) but instead open up a terminal screen/window and use "mc" (Midnight Commander) to edit the file the executable permission is maintained!! :D
The maintainance of the executable status is the "expected" behavour that I learned using Kanotix. This is what I expect to happen if I am editing a simple BASH script.
Am I doing something wrong in KDE? Please help as having to chmod the script file to executable after an edit is a major waste of time. The best analogy is having to cold boot the system everytime to recompile source code!!!
Thanks for your help.
I recently installed to hard disk version 5.1x of Knoppix.
Logged in as "root" I was trying to write a simple BASH script when I encountered the following problem.
1) I created a BASH script called "restoreold.sh"
2) In KDE I right clicked on the file and set the permissions to r/w and executable( important!)
3) I check the permissions in Konqueror to verifiy that the file is indeed executable.
4) I edit the file with Kate or Kwrite and save.
5) When I check the permissions of the file I have just saved in Konqueror the executable status has vanished!! :shock:
6) If I do 1) through 3) but instead open up a terminal screen/window and use "mc" (Midnight Commander) to edit the file the executable permission is maintained!! :D
The maintainance of the executable status is the "expected" behavour that I learned using Kanotix. This is what I expect to happen if I am editing a simple BASH script.
Am I doing something wrong in KDE? Please help as having to chmod the script file to executable after an edit is a major waste of time. The best analogy is having to cold boot the system everytime to recompile source code!!!
Thanks for your help.