Thanks Eric - 32766 solved the problem!

Now I'm on to my next problem.

This is behaving normally (there is no temp.c):

C:\DEVEL\binutils-2.14a>gcc386 -S temp.c jjjjjjjjjjjjjjjjjjjjj ddddddddddddddddd
dddddddddd eeeeeeeeeeeeeeeeeeeeeeee jjjjjjjjjjjjjjjjjjjjjj iiii
doing CreateFile with Xtemp.cX
cc1: temp.c: An error has occurred


This isn't!

C:\DEVEL\binutils-2.14a>gcc386 -S temp.c aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbb bbbbbbbbbbbbbbbbbbb jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj kkkkkkkkkkkkkkkkkllll

Commandline longer than 125 characters.
Exception 0D
EAX=00000282 EBX=0000549D ECX=00000003 EDX=00000274 ESI=00000100
EDI=00000100 EBP=00005898 ESP=00005702 EFL=00013246 EIP=000009FE
CS=0097 (00111000,000058CF,00FB) SS=008F (00111000,000058CF,40F3)
DS=009F (00029AF0,0000010F,00F3) ES=00D7 (000298C0,000000FF,00F3)
FS=0000 (********,********,****) GS=0000 (********,********,****)
LDTR=0038 (FF80F000,00000FFF,0082) TR=0030 (0002F770,00000067,008B)
ERRC=0000 (********,********,****) PTE 1. Page LDT=1FFEF467
GDTR=07FF:FF80E000 IDTR=07FF:FF80E800 PTE CR2=00000067
CR0=E0000031 CR2=00000000 CR3=1FFFF000 CR4=00000200 TSS:ESP0=00002898
DR0-3=00000000 00000000 00000000 00000000 DR6=FFFF0FF0 DR7=00000400
LPMS Sel=0087(01) RMS=31F6:0200 open RMCBs=0000/0000 ISR=0000
  [EIP]=F3 67 A4 F7 C7 00 FF 75 03 B0 0D AA
  [ESP]=4A5D 0000 475A 0040 5898 0000 5722 0000
00005712=549D 0000 0274 0000 005B 0000 0204 0000
00005722=008F 008F 2875 00C7 5746 0000 0040 0040
00005732=5898 0000 574A 0000 F000 0000 572A 0000
00005742=0001 0000 0507 0021 00C7 4550 0000 014C
00005752=0006 E78A 608B 0000 0000 0000 0000 00E0


I think it is an HX problem, so I'll report it to Japheth.

BFN. Paul.




-----Original Message----- From: Eric Auer
Sent: Sunday, May 30, 2021 7:33 PM
To: freedos-user@lists.sourceforge.net
Subject: Re: [Freedos-user] CMDLINE


Sorry, I have to correct myself: According to

https://github.com/FDOS/freecom/blob/master/shell/init.c#L440

the REAL maximum possible environment size right
now is "only" 32766. Not 32767 and not 32768, but
FreeCOM texts (in all languages) claim it is 32768.

If you specify values below 17 or above 32766, some
default size of the environment will be used instead.

Regards, Eric



Hi Paul,

I believe that command.com can get involved in
the CMDLINE environment variable, just like any
other program can. And if it can't, it should say
so, rather than reporting a failed attempt to set it.

C:\DEVEL\PDOS\SRC>ver

FreeCom version 0.84-pre2 XMS_Swap [Aug 28 2006 00:29:00]

This seems to be the oldest version with CMDLINE at all:

https://github.com/FDOS/freecom/blob/master/CHANGED

Actually there seems to be a documentation error:
The REAL maximum value of 16-bit signed integers
is 32767 and not 32768 bytes. Try /E:16384 of, if
you are less humble, /E:32767 :-)

https://github.com/FDOS/freecom/blob/master/shell/init.c#L102

Regards, Eric

PS: I suggest to include a NEWER version in our distro!




_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to