Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Application questions and support => Topic started by: Ancalimon on September 07, 2014, 06:35:30 PM

Title: Ed command and long command lines
Post by: Ancalimon on September 07, 2014, 06:35:30 PM
Is there a patch that increases the length of command lines?

On OS3.9 when you boot without startup-sequence, you can not use editpad to edit files and you have to use ed. The ed command cuts of long command lines (like for example by blizkick line which have lots of arguments)

I know there are other options (like the ed command that comes with Amigakit) but I'd like ed that comes with OS3.1 and 3.9 to also support long lines.
Title: Re: Ed command and long command lines
Post by: Matt_H on September 07, 2014, 07:25:01 PM
I think you can just scroll the cursor to the right to get the full line...?

There's also MEmacs bundled with the OS that should work.
Title: Re: Ed command and long command lines
Post by: guest11527 on September 07, 2014, 07:30:56 PM
Quote from: Ancalimon;772509
Is there a patch that increases the length of command lines?
As in "command lines of the Shell"? Then you don't need one. The shell does not have (anymore, as of 3.9) a command line limit. It can be as long as there is memory to hold it.  
Quote from: Ancalimon;772509
On OS3.9 when you boot without startup-sequence, you can not use editpad to edit files and you have to use ed. The ed command cuts of long command lines (like for example by blizkick line which have lots of arguments)

Ed, unfortunately, has a fixed limit of 255 characters per line that is compiled into the code, and the memory for that is not even allocated, but taken from the bss segment of the command, thus just patching would overwrite other internal variables. Thus, there is no way to extend this except to recompile it. But other options exist. CED works fine even without a startup-sequence. (Ed is a dinosaur anyhow, better put it to rest).
Title: Re: Ed command and long command lines
Post by: kolla on September 07, 2014, 08:13:28 PM
Ced is commerciall, ed is fine.
Title: Re: Ed command and long command lines
Post by: itix on September 07, 2014, 08:17:45 PM
I have used Blacks Editor (http://aminet.net/package/text/edit/BlacksEditor). It works without startup-sequence, is free and is also very good editor for coding.
Title: Re: Ed command and long command lines
Post by: Ancalimon on September 07, 2014, 09:06:27 PM
Thanks for the explanations and suggestions.

By the way does anyone know what part of Startup-Sequence should be loaded so that I can run editpad after booting without startup-sequence?

I can create a script just for that.
Title: Re: Ed command and long command lines
Post by: Matt_H on September 07, 2014, 09:27:05 PM
EditPad uses ReAction, so to get that functional I think you need ENV: assigned, as well as
Code: [Select]
assign LIBS: SYS:Classes ADD Hopefully I'm not forgetting anything, but I trust that someone else will correct me if I am :)