Welcome, Guest. Please login or register.
Amiga Kit Amiga Store Hollywood MAL AMIStore App Store A600 Memory

AuthorTopic: Ed command and long command lines  (Read 809 times)

0 Members and 1 Guest are viewing this topic.

Offline Ancalimon

Ed command and long command lines
« 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.
A4000T, 604e@400&060@66, 128MB+16MB+Zorram256, CVisionPPC, VLabMotion, Toccata, XSurf100&RapidRoad, Prisma Megamix

A1200, Blizzard060@50, 256MB, Blizzard IV SCSI, FastATA mk4
 

Offline Matt_H

Re: Ed command and long command lines
« Reply #1 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.
 

guest11527

  • Guest
Re: Ed command and long command lines
« Reply #2 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).
 

Offline kolla

Re: Ed command and long command lines
« Reply #3 on: September 07, 2014, 08:13:28 PM »
Ced is commerciall, ed is fine.
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM460 and Mac minis with MorphOS
 

Offline itix

Re: Ed command and long command lines
« Reply #4 on: September 07, 2014, 08:17:45 PM »
I have used Blacks Editor. It works without startup-sequence, is free and is also very good editor for coding.
My Amigas: A500, Mac Mini and PowerBook
 

Offline Ancalimon

Re: Ed command and long command lines
« Reply #5 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.
A4000T, 604e@400&060@66, 128MB+16MB+Zorram256, CVisionPPC, VLabMotion, Toccata, XSurf100&RapidRoad, Prisma Megamix

A1200, Blizzard060@50, 256MB, Blizzard IV SCSI, FastATA mk4
 

Offline Matt_H

Re: Ed command and long command lines
« Reply #6 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 :)