home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / question / 16055 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.3 KB

  1. Path: sparky!uunet!europa.eng.gtefsd.com!gatech!udel!darwin.sura.net!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!hri.com!noc.near.net!bigboote.WPI.EDU!parrot.WPI.EDU!ryant
  2. From: ryant@parrot.WPI.EDU (Ryoid)
  3. Newsgroups: comp.unix.questions
  4. Subject: Env variables from within a script...
  5. Message-ID: <1k9bp7INNj5i@bigboote.WPI.EDU>
  6. Date: 28 Jan 93 19:22:15 GMT
  7. Organization: Worcester Polytechnic Institute
  8. Lines: 23
  9. NNTP-Posting-Host: parrot.wpi.edu
  10.  
  11. I am writing a seemingly simple shell script, but I am running into many
  12. obsatcles along the way.  I need to pass two environment variables from
  13. within a script to the calling, or parent, process.  Everytime I just pass
  14. the variable, it never gets changed in the original parent shell.  I know
  15. that I can source a file that passes the variables and then just alias the
  16. command, but that will not work in this application.  I have to pass them
  17. from directly within the 'child' shell.
  18.  
  19. In the FAQ, it states that you can tell the parent shell to be prepared to
  20. accept environment variables and then when you pass them, they will become
  21. permanent, but it never states HOW to do it!
  22.  
  23. If anyone can help me with this problem, please post or write email to the
  24. address listed below!
  25.  
  26. Thanks in advance...
  27.  
  28. ryant@wpi.wpi.edu
  29. -- 
  30.  
  31. Gweeping on forever and ever,
  32.  
  33. ***  Ryoid =)  ***
  34.