Amiga.org
Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: rare_j on June 27, 2006, 01:16:11 PM
-
Sometimes when I use ed to edit a script it clears the 's' protection bit, sometimes it doesn't.
Does anyone know why this is? Also is there a better program that I could use that doesn't mess with the file protection bits at all?
-
Ed is a very basic program, it does not care at all about protection bits. The bits are changed to ----RWED whenever you save a file.
As a replacement I'd suggest CygnusEd (http://www.vesalia.de/e_cygnused.htm). It is *the* text editor par excellence.
Bye,
Thomas
-
Ed will only preserve the "S" bit if the name remains EXACTLY the same.
For example, if you have the "s" protection bit on the startup sequence you have to use:
ed S:Startup-Sequence
and not
ed s:startup-sequence
The later will change the upper-case to lower-case and give the file the default "RWED" protection bits.
-
Thanks - that's been bugging me for ages