Re: Command-line length
- Posted by Irv <irv at ELLIJAY.COM> May 22, 1998
- 669 views
>Date: Fri, 22 May 1998 09:28:09 -0400 >> >>Robert Craig wrote: >>> >>> Terry Constant wrote: >>> > 4Dos allows a command-line length of 255 characters, >>> > 511 after expansion of environment variables. >>> > Apparently Euphoria limits the command-line to the >>> > Dos length of 128. .... >>> Rob Craig wrote: >>> ....I'm not limiting anything to >>> 128 characters inside Euphoria itself. >>> >>> Regards, >>> Rob Craig >>> Rapid Deployment Software >> >>Rob, >>Thanks for your reply. But I do think that there is something unique >>about how Euphoria handles a command-line longer than 128 chars. ...... >>When Euphoria gets this long line, it completely crashes and produces >>Cw.err. You get a beep when you try which is probably Dos balking at >>more than 128 characters. 4Dos passes such long lines on to the program. >> Some accept 4Dos's long command-line. ------------------------------------ Wild guess #1: when DOS creates a PSP for Euphoria (or any program) it allocates a fixed length area in which to pass the command line (offset 80h within the psp). Only 91 bytes are allotted, because the filename(s) are stripped off first. This is a core DOS function, probably used by 4DOS as well. Wild guess #2: perhaps 4DOS and 4DOS compatible programs use the undocumented 2Eh call (alternate EXEC) to process the longer line? No flames, please. I don't know much about DOS. That's why these are called guesses. Irv