delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/18/12:30:21

From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: Setting env variables
Date: 17 Dec 1997 08:47:55 GMT
Organization: The National Capital FreeNet
Lines: 20
Message-ID: <6783jr$gv2@freenet-news.carleton.ca>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet5.carleton.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp



Firstly if PUTENV only affects the environment within the calling program
why use it? Why not use a variable?

Secondly, maybe someone can decompile the set.com (or whatever it is) that
comes with DOS to see how to modify the parent environment. The SET
command works nicely for this:


set djgpp=c:/foo/bar/blah   ; In Autoexec.bat, gets done at startup

gcc -o foo.exe foo.c     ; This works, ergo the above changed DJGPP not
                         ; just for SET but for the parent DOS session
--
    .*.  Friendship, companionship, love, and having fun are the reasons for
 -()  <  life. All else; sex, money, fame, etc.; are just to get/express these.
    `*'  Send any and all mail with attachments to the hotmail address please.
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca pgd73 AT hotmail DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019