🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.apple2.gno
Article #287

Re: Reading shell variables from a program.

#287
From: James L. Brookes
Date: Tue, 17 Nov 1992 18:24
24 lines
1669 bytes
In article <behrenss.721986029@hphalle6> behrenss@Informatik.TU-Muenchen.DE 
(Soenke Behrens) writes:
>jamesb@ecst.csuchico.edu (James L. Brookes) writes:
>
>>I looked through the documentation at hand (as well as several manpages on
>>the unix box here) but I couldn't figure out how to read a shell variable
>>from within a program.  
>
>Sure. Simply getenv() it. To change, setenv(). Hey, that's ANSI. Look
>in your "C - A Ref....blah" or "K&R 2", hmm? :)

What was that you said about "not having enough money" earlier, hmm? :-)

In any event, I ended up not using getenv() and getting my info from
elsewhere than an environmental variable...but it's good to know how to 
do it :)

>Soenke
>More than silver, more than gold, I need   !    behrenss@informatik.
-- 
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|          James Brookes            | Inet: bb252@cleveland.freenet.edu |
|``What, me worry?'' - A. E. Neuman |   jamesb@cscihp.ecst.csuchico.edu |
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Technical Details
Message-ID: <1ebdc0INN6ec@charnel.ecst.csuchico.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!wupost!uwm.edu!ogicse!psgrain!charnel!jamesb
References: <1e8tnnINN3bf@charnel.ecst.csuchico.edu> <behrenss.721986029@hphalle6>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!wupost!uwm.edu!ogicse!psgrain!charnel!jamesb
From: jamesb@ecst.csuchico.edu (James L. Brookes)
Newsgroups: comp.sys.apple2.gno
Subject: Re: Reading shell variables from a program.
Message-ID: <1ebdc0INN6ec@charnel.ecst.csuchico.edu>
Date: 17 Nov 92 18:24:00 GMT
Article-I.D.: charnel.1ebdc0INN6ec
References: <1e8tnnINN3bf@charnel.ecst.csuchico.edu> <behrenss.721986029@hphalle6>
Organization: California State University, Chico
Lines: 24
NNTP-Posting-Host: hairball.ecst.csuchico.edu