Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!shelby!Portia!Jessica!rick From: rick@Jessica.stanford.edu (Rick Wong) Newsgroups: comp.sys.mac.programmer Subject: Re: Rez v3.0 & MPW shell variables/scripts. Keywords: MPW, Rez Message-ID: <1444@Portia.Stanford.EDU> Date: 11 Apr 89 16:47:41 GMT References: Sender: USENET News System Reply-To: rick@Jessica.stanford.edu (Rick Wong) Organization: Stanford University Lines: 26 In article wb1j+@andrew.cmu.edu (William M. Bumgarner) writes: > >Tried: > >for x in {COMPLETE} (like UserStartUp) > set x external > rez -o CDXSet -t XSTK -c WILD -a -ov < CDXset.r >end >w/CDXset.r containing the line include {x} > >after a little experimentation, I discovered that REZ will not evaluate >variables or scripts in the .r files... > Rez uses a different "syntax" for shell variables. Try something like: #include $$Shell("MyShellVariable"); By the way, in your for-loop above, I don't think you want the line "set x external" -- that will overwrite the value of x with the string "external". Rather, you should say "export x" (and you only need to do it once, before the for-loop). Rick Wong Stanford University rick@jessica.stanford.edu