HP3000-L Archives

July 2003, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"VANCE,JEFF (HP-Cupertino,ex1)" <[log in to unmask]>
Reply To:
VANCE,JEFF (HP-Cupertino,ex1)
Date:
Wed, 2 Jul 2003 15:01:33 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
...
> It also seems a much more elegant solution than REPL for
> handling quotes inside INFO= strings. Just out of curiosity,
> why was it removed?

The main goal of quote() was to prevent the CI from interpreting
certain meta-characters, like double quotemark, single quotemark,
exclamation mark, etc.  There had been some discussion at the time
of having a HpCINoMeta variable that would tell the CI to not
process any meta-characters in the command line, or making this
a UDC/script header option, etc.  This would have been useful, for
instance, where one script creates another script.

The short-lived quote() function was an attempt to deliver on
that concept. But, there were problems with quote: it blindly
doubled quotemarks, even when that wasn't correct -- e.g.,
inside ![expression] clauses. Another problem is that if
you have a string with single and double quotemarks (say, as
an info= string) you don't necessarily want both types of
quotes doubled -- you probably only want to double the type
of quote you are choosing to enclose the entire info= string.
So, quote() had some problems and a more reliable and predictable
approach is to use repl().

HTH,
  Jeff Vance, vCSY

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2