Article View: alt.msdos.programmer
Article #554Long command lines
From: bright
Date: Wed, 22 Aug 1990 14:25
Date: Wed, 22 Aug 1990 14:25
17 lines
1325 bytes
1325 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:
<FooBarataio.Data-IO.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!sci.ccny.cuny.edu!cucard!rockyd!cmcl2!yale!mintaka!mit-eddie!uw-beaver!sumax!nwnexus!pilchuck!dataio!brightReferences:
<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!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!sci.ccny.cuny.edu!cucard!rockyd!cmcl2!yale!mintaka!mit-eddie!uw-beaver!sumax!nwnexus!pilchuck!dataio!bright From: bright@dataio.UUCP Newsgroups: alt.msdos.programmer,comp.os.msdos.programmer Subject: Long command lines Message-ID: <FooBarataio.Data-IO.COM> Date: 22 Aug 90 14: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