Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!psuvax1!ukma!cs.widener.edu!dsinc!bagate!cbmvax!cbmehq!cbmger!peterk From: peterk@cbmger.UUCP (Peter Kittel GERMANY) Newsgroups: comp.sys.amiga.programmer Subject: Re: Can't get eval to work like examples show Message-ID: <977@cbmger.UUCP> Date: 19 Mar 91 15:15:23 GMT References: <7408.669349271@lemsys.UUCP> Reply-To: peterk@cbmger.UUCP (Peter Kittel GERMANY) Organization: Commodore Bueromaschinen GmbH, West Germany Lines: 34 In article <7408.669349271@lemsys.UUCP> clemon@lemsys.UUCP (Craig Lemon) writes: > > I have a need for eval to incriment an environment variable. In >the 1.3 manual it gives and example of how to use eval for this purpose : > >eval nil: to=t:qwe{$$} value2=1 op=-? ^^^^^ should be op=- ? > My version so far is > >eval NIL: ^^^^^ --> op=+ ? > It returns a 'bad arguments' error. What's wrong? I shouldn't >NEED to direct output to nil: (then I wouldn't know that it didn't work!) Well, two errors at once: First, you must separate the "?" with a space. That should have caused that "bad arguments" error. And then, you really NEED the ">NIL:", because this has to do just with that "?": The "?" normally tells a command that you want help and ask it to display the command template, and it prompts you for the result. Now this approach is used to get one argument from input redirection. The "?" evokes the template, but ">NIL:" sends the template output to India/Egypt, and the command searches for the argument input which it gets delivered by "