In <listserv%[email protected]>, on 12/22/2010
   at 12:48 AM, Elardus Engelbrecht <[email protected]>
said:

>IMNHO, the parser should be rewritten so that upon encountering a
>quote, a  flag should be set, and reset upon encountering the next
>quote. In that way,  when encountering a delimiter, while this flag
>is set, can then be treated as a  literal string.

That would break any code that expected to handle unmatched quotes. It
would create more nasty surprises than the current situation.

>It seemed to me that delimiter act as an overiding thing to stop
>parsing at all.

The ISPF command line parser doesn't, and shouldn't, treat ' and " as
delimiters. Consider someone who writes an EDIT macro to insert text.

  %INSERT .ZF I don't like it.'%INSERT .Q He doesn't either.

Doing as you suggest would leave the user scratching his head,
swearing, or both.
 
-- 
     Shmuel (Seymour J.) Metz, SysProg and JOAT
     ISO position; see <http://patriot.net/~shmuel/resume/brief.html> 
We don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to