Article View: comp.sys.apple2.gno
Article #281Re: Reading shell variables from a program.
From: Soenke Behrens
Date: Tue, 17 Nov 1992 07:40
Date: Tue, 17 Nov 1992 07:40
16 lines
1403 bytes
1403 bytes
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? :) Soenke P.S.: This is assuming that by "shell variable" you really mean "environment variable", such as $TERM or $HOME or what-you-have.-- =========================================================================== More than silver, more than gold, I need ! behrenss@informatik. electricity. I need it for my dreams. ! tu-muenchen.de (RACTER) ! FIDO: 2:246/13 Soenke Behrens
Technical Details
Message-ID:
<behrenss.721986029@hphalle6>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!usc!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!informatik.tu-muenchen.de!hphalle6!behrenssReferences:
<1e8tnnINN3bf@charnel.ecst.csuchico.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.apple2.gno Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!usc!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!informatik.tu-muenchen.de!hphalle6!behrenss From: behrenss@Informatik.TU-Muenchen.DE (Soenke Behrens) Subject: Re: Reading shell variables from a program. References: <1e8tnnINN3bf@charnel.ecst.csuchico.edu> Sender: news@Informatik.TU-Muenchen.DE (USENET Newssystem) Organization: Technische Universitaet Muenchen, Germany Date: Tue, 17 Nov 1992 07:40:29 GMT Message-ID: <behrenss.721986029@hphalle6> Lines: 16