Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: rare_j on June 27, 2006, 01:16:11 PM

Title: ed sometimes clears s bit
Post 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?
Title: Re: ed sometimes clears s bit
Post by: Thomas on June 27, 2006, 02:25:48 PM
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
Title: Re: ed sometimes clears s bit
Post by: mpiva on June 27, 2006, 05:21:43 PM
  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.
Title: Re: ed sometimes clears s bit
Post by: rare_j on June 28, 2006, 09:56:17 AM
Thanks - that's been bugging me for ages