Path: utzoo!news-server.csri.toronto.edu!rutgers!sun-barr!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!mips!wdl1.wdl.loral.com!fmsrl7!pms415!reso@fmsrl7.srl.ford.com From: pms415!reso@fmsrl7.srl.ford.com (Dennis M. Reso) Newsgroups: comp.unix.questions Subject: Re: KSH .profile problem - Why doesn't this work and how to make it work? Summary: How to mark lots of shell variables for export Keywords: ksh export variables KSH Message-ID: <37879@fmsrl7.UUCP> Date: 14 Mar 91 19:19:27 GMT Expires: 14 Mar 91 19:10:50 GMT References: Sender: root@fmsrl7.UUCP Reply-To: pms415!reso@fmsrl7.srl.ford.com (Dennis M. Reso) Organization: P&MS, Ford Motor Company, Dearborn MI Lines: 25 In article jeffo@uiuc.edu writes: > My .profile has a really long export line because I have quite a few variables > that I wish to export. See your ksh man page for the "set" builtin command. Most Bourne and Korn shells that I have seen support set -a VAR1=value ... VARn=value set +a The "set -a" says mark all newly created variables as "export", and the "set +a" turns the feature off. ____________________________________________________________________________ pms415!reso@fmsrl7.srl.ford.com sevihc!reso@sharkey.cc.umich.edu RESO -ON D1D1 {sharkey|hela}!sevihc!reso Ford - Car Product Development, CAD/CAM Sterling Heights, MI USA Bldg3 1st Floor #1152 (313) 322-5867 (313) 939-2789