If the 127 (128) character restriction in DOS can be changed to higher values 
in 4DOS, DOG or any other Doses? 

IN the DOS source code it seems to be just a value set in the COMBUF 
allocation: 

> COMBUF 
> 
> DB  128 ; Max number of characters to read 
> DB ? ; Number of characters actually read 
> DB 128 DUP (?) ; The command line buffer itself


Anyone thinking that changing this value in command.asm would work??

T


> Am 15.06.2026 um 19:09 schrieb Rugxulo via Freedos-user 
> <[email protected]>:
> 
> Hi,
> 
> On Sun, Jun 14, 2026 at 10:05 PM Michael Brutman via Freedos-user
> <[email protected]> wrote:
>> 
>> 4DOS might have a larger command line limit, but only 127 bytes of options 
>> and flags for the command get passed to the program - it's a limitation of 
>> the Program Segment Prefix that nothing can break.  (The PSP allows for up 
>> to 127 bytes of flags and arguments to a program.)
> 
> Win95's shell allowed for longer by stuffing it into a %CMDLINE%
> variable. FreeDOS and 4DOS both support this. In fact, I think all
> DJGPP programs support this, so one could just use DJGPP's DJECHO.EXE
> (instead of downloading a whole other shell to get used to).
> 
> But 4DOS is indeed very very nice and useful. I just shunned it for
> years in the interest of extreme compatibility in .BAT scripts. You
> could even use DJGPP's build of Bash, but I wouldn't recommend it.
> 
> 
> _______________________________________________
> Freedos-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freedos-user

_______________________________________________
Freedos-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to