Path: utzoo!attcan!uunet!munnari.oz.au!sirius.ucs.adelaide.edu.au!adam.adelaide.edu.au!phil From: phil@adam.adelaide.edu.au (Phil Kernick) Newsgroups: comp.sys.amiga Subject: Re: CLI-Execute bug Keywords: cli execute bug Message-ID: Date: 6 Nov 90 04:59:31 GMT References: <2734df34-329a.1comp.sys.amiga-1@tronsbox.xei.com> Sender: news@ucs.adelaide.edu.au Organization: University of Adelaide Lines: 45 Nntp-Posting-Host: adam.adelaide.edu.au bleys@tronsbox.xei.com (Bill Cavanaugh) writes: >[ description of NO .K DIRECTIVE problem deleted] >That's not a bug, it really IS a feature. Execute thinks that < and > >are supposed to be used around the value passed to a .key , so when it >encounters your redirection (using < again), it gives you an error. >The .bra and .ket commands were put in to allow you to specify your OWN >character to use with .keys... most people seem to like { and }. #pragma FLAME_ON You guys really don't read the postings before wasting net-bandwidth do you? This is about the 3rd post and I have had about 5 email messages saying exactly the same thing, and you are *all* wrong. Go back and look at the original posting I made, notice that if you call the test script directly from the CLI that it behaves as expected, but if called from another script it crashes, even when the < character is inside a quoted string or comment. The parser has a bug in that it parses *everything*, including quoted strings and comments which it should *not* do. The 1.3 docs say that "if you want to include dot commands then the first line of the script must contain a dot command, otherwise no dot commands are looked for" (paraphrased). If you look at the test script you will see that the first line does *not* have a dot command on it, and hence the parser has *no* reason to look for command substitution. In future, if you are going to post a solution to a problem, first read the original post, and then answer the question. #pragma FLAME_OFF Again, will someone with 2.0 please try what I originally posted and tell me if the bug has been fixed. Phil. -- Phil Kernick EMail: phil@adam.adelaide.edu.au Departmental Engineer Phone: +618 228 5914 Dept. of Psychology Fax: +618 224 0464 University of Adelaide Mail: GPO Box 498 Adelaide SA 5001