From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,2354bf88191a516d X-Google-Attributes: gidf7344,public X-Google-Thread: 111731,2354bf88191a516d X-Google-Attributes: gid111731,public X-Google-Thread: f6134,2354bf88191a516d X-Google-Attributes: gidf6134,public X-Google-Thread: 1164f8,2354bf88191a516d X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-03-12 12:57:54 PST Xref: gmd.de comp.sys.dec:14296 comp.org.decus:2981 comp.unix.advocacy:1131 comp.os.vms:42314 Path: gmd.de!newsserver.jvnc.net!yale.edu!yale!gumby!newsxfer.itd.umich.edu!sol.ctr.columbia.edu!usc!elroy.jpl.nasa.gov!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick) Newsgroups: comp.sys.dec,comp.org.decus,comp.unix.advocacy,comp.os.vms Subject: Re: Carl Lydick post-alike-contest!!! Date: 12 Mar 1994 20:57:54 GMT Organization: HST Wide Field/Planetary Camera Distribution: world Message-ID: <2ltaci$7u0@gap.cco.caltech.edu> References: Reply-To: carl@SOL1.GPS.CALTECH.EDU NNTP-Posting-Host: sol1.gps.caltech.edu In article , 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.