🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #553

Long command lines

#553
From: Walter Bright
Date: Wed, 22 Aug 1990 18:25
17 lines
1244 bytes
I've been looking at ways that a parent program can spawn a child program
with command lines that are > 127 bytes long (the max for DOS and OS/2
(why didn't OS/2 fix this?)). The most obvious approach is to pass the
long line via an environment variable.

I've heard that some MAKE programs do this.

What name do they use for the environment variable? Is there any sort
of defacto standard for this? What if both the environment variable
and a command line exist, does the environment variable come 'before'
or 'after' the command line?

If there is no commonly used environment variable, how about defining one,
I propose "CMDLINE".

(Interestingly, MSC6 CL passes long command lines to the compiler passes
C1 with the environment variable "_MSC_CMD_FLAGS".)
Technical Details
Message-ID: <2661@dataio.Data-IO.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!uw-beaver!sumax!nwnexus!pilchuck!dataio!bright
References: <245@erb1.engr.wisc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!uw-beaver!sumax!nwnexus!pilchuck!dataio!bright
From: bright@Data-IO.COM (Walter Bright)
Newsgroups: alt.msdos.programmer,comp.os.msdos.programmer
Subject: Long command lines
Message-ID: <2661@dataio.Data-IO.COM>
Date: 22 Aug 90 18:25:31 GMT
References: <245@erb1.engr.wisc.edu>
Followup-To: alt.msdos.programmer
Distribution: na
Organization: Data I/O Corporation; Redmond, WA
Lines: 17