🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.msdos.programmer
3 messages
3 total messages Started by Paul Schaff Tue, 21 Aug 1990 15:58
need explaination of PSP
#551
Author: Paul Schaff
Date: Tue, 21 Aug 1990 15:58
10 lines
960 bytes
I need to find the environment variables of a parent process. I have three 
programs the parent, child1, and child2.  The parent spawns child1 with 
the parent waiting for the child to finish. Child1 needs to change the 
environment of the parent, because child1 spawns child2 with an overlay, so
child1's enviroment is lost.  I am able to change command.com's environment
but not that of the parent.  I need to find a way to get to the parent's
enviroment.


schaff@cae.wisc.edu
Long command lines
#554
Author: bright
Date: Wed, 22 Aug 1990 14:25
17 lines
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".)
Long command lines
#553
Author: 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".)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads