Mail Archives: djgpp/1998/11/03/21:52:05
cbfalconer AT my-dejanews DOT com wrote:
> Correction - built into COMMAND. Get a copy of 4dos (www.jpsoft.com) and that
> limitation goes away. I think the default will be 512 chars, and I believe it
> is configurable. Not to mention all the other advantages.
From the command line, that is true, but for the wrong reasons. I use
4DOS, although an old one (it's registered), and it uses yet another
workaround; it sets an environment variable to the command line. DJGPP
doesn't support this either when calling or being called. I proposed
adding this support some time ago, but it seemed a lot like creeping
featurism, being a nonstandard hack.
On the other hand, the actual DOS call which gives the function call
mechanism (INT 21h/AH=4Bh) does limit the command line to 126 characters
in all versions I know about. (It's a 128-byte buffer, where the first
character is a length count, and the string is terminated with a CR.)
So the limitation of that mechanism is indeed in the DOS kernel, and
applies to DJGPP's `system', which uses that when the child is not a
DJGPP program.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -