Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
Subject: Re: Carl Lydick post-alike-contest!!!
Date: 12 Mar 1994 20:57:54 GMT	[thread overview]
Message-ID: <2ltaci$7u0@gap.cco.caltech.edu> (raw)
In-Reply-To: CMKIty.FJx@rex.uokhsc.edu

In article <CMKIty.FJx@rex.uokhsc.edu>, ben@rex.uokhsc.edu (Benjamin Z. Goldsteen) writes:
=     Now that we have so many examples, I hope all of you out there try
=your best to live up to what may be the Next Thing!!!  Don't be left
=out!!!
=
=[I wonder if we can get O'Reilly and Ass., Inc to write a book that
=would provide a more theoretical foundation so we don't have to rely on
=these "reference implementations"?]

Yet another clueless idiot make himself heard.  Each time a string is parsed,
quotes are stripped.  Thus, when DCL parses the assignment command:

	$ a="Paper: ""Very Interesting"" (really)"

The outer quotes are stripped, and the interior pairs of quotes are reduced to
one quote instead of two:
	$ a="Paper: "" Very Interesting"" (really)"
	$ WRITE SYS$OUTPUT a
	Paper: " Very Interesting" (really)
When you try using that in the command:
	$ mail/subj="''a'"
after the symbol a is substituted, we have:
	$ mail/subj="Paper: " Very Interesting" (really)"
which, as one would expect, uses Very as the name of the to be mailed.
On the other hand, if we use, as I suggested:
	$ a="Paper: """"Very Interesting"""" (really)"
	$ WRITE SYS$OUTPUT a
	Paper: ""Very Interesting"" (really)
then when we execute the command:
	$ mail/subj="''a'"
after symbol substitution we have:
	$ mail/subj="Paper: ""Very Interesting"" (really)"
which, when parsed, gives us as the subject
	Paper: "Very Interesting" (really)
Or, if we use, as Ehud suggested:
	$ a="""Paper: """"Very Interesting"""" (really) ""
	"Paper: ""Very Interesting"" (really) "
Then, after symbol substitution, we've once again got:
	$ mail/subj="Paper: ""Very Interesting"" (really) " file.txt recipient
which results in the subject:
	Paper: "Very Interesting" (really) 
Rather than waiting for O'Reilly and Associates to publish a book, you might
want to take a look at the DCL Concepts Manual.
--------------------------------------------------------------------------------
Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL

Disclaimer:  Hey, I understand VAXen and VMS.  That's what I get paid for.  My
understanding of astronomy is purely at the amateur level (or below).  So
unless what I'm saying is directly related to VAX/VMS, don't hold me or my
organization responsible for it.  If it IS related to VAX/VMS, you can try to
hold me responsible for it, but my organization had nothing to do with it.


  reply	other threads:[~1994-03-12 20:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-03-12 20:13 Carl Lydick post-alike-contest!!! Benjamin Z. Goldsteen
1994-03-12 20:57 ` Carl J Lydick [this message]
1994-03-15 18:04   ` Benjamin Z. Goldsteen
1994-03-13  0:20 ` Wayne Sewell
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox