Path: utzoo!attcan!uunet!cbmvax!rutgers!tut.cis.ohio-state.edu!pt.cs.cmu.edu!rochester!udel!new From: new@udel.EDU (Darren New) Newsgroups: comp.sys.amiga Subject: Re: ARexx and mg3 questions Message-ID: <24107@estelle.udel.EDU> Date: 10 Jul 90 12:17:44 GMT References: <9007061951.AA00834@human-torch.lockheed.com> <138524@sun.Eng.Sun.COM> Reply-To: new@ee.udel.edu (Darren New) Organization: University of Delaware Lines: 23 In article <138524@sun.Eng.Sun.COM> cmcmanis@stpeter.Eng.Sun.COM (Chuck McManis) writes: >address mg causes rexx to attempt to resolve the variable 'mg' which >is not what you want, using the quotes passes the string 'mg' to the >address command. You could have said : > editor="mg" > address editor >and that would do what you expect, setting the host environment to the >contents of the editor variable. Actually, according to the documentation (pg 25), the ADDRESS command does not attempt to resolve the value of the variable. However, in parsing, the variable name has already been shifted to upper case. The original "address mg" didn't work because the port was named "mg" and not "MG". If you want to do what you did above, try editor = "mg" address value editor I think I've been bitten by this a couple of times. Note that there does not seem to be a way of using "ADDRESS VALUE" along with a command at the same time, as the parser would have trouble figuring out where the expression stops and where the command starts. -- Darren