🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.pc
Article #5533

How to change environment variables within a program?

#5533
From: Peter Wu
Date: Sat, 01 Feb 1986 09:52
7 lines
796 bytes
Is there a way to change the environment variables (e.g. PATH)
within a program and have it exported to the command shell?

In other words, is there a back pointer to the environment variables of
the parent process that the child can access?

				     peter
Technical Details
Message-ID: <50@gumby.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!amdcad!lll-crg!topaz!uwvax!gumby!peter

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!amdcad!lll-crg!topaz!uwvax!gumby!peter
From: peter@gumby.UUCP (Peter Wu)
Newsgroups: net.micro.pc
Subject: How to change environment variables within a program?
Message-ID: <50@gumby.UUCP>
Date: Sat, 1-Feb-86 04:52:27 EST
Article-I.D.: gumby.50
Posted: Sat Feb  1 04:52:27 1986
Date-Received: Mon, 3-Feb-86 04:39:35 EST
Organization: U of Wisconsin CS Dept
Lines: 7
Keywords: environment, pc, pc-dos