[Info-vax] A DCL wish list of sorts...

Stephen Hoffman seaohveh at hoffmanlabs.invalid
Mon Mar 18 19:33:12 EDT 2019


On 2019-03-18 22:58:47 +0000, Phillip Helbig (undress to reply said:

> In article <q6o61c$2e3$1 at dont-email.me>, Simon Clubley
> <clubley at remove_me.eisner.decus.org-Earth.UFP> writes:
> 
>>> $ write sys$output "Print a double quote "" followed by a single quote ''''"
>>> Print a double quote " followed by a single quote '
>> 
>> Using an escape character is more readable IMHO. That would allow you 
>> to write your example as something like this:
>> 
>> $ write sys$output "Print a double quote \" followed by a single quote \'"
> 
> Granted.  Back to the original example, it is clear why "" prints ";  
> this is common (e.g. Fortran).  But why does '''' print '?  Not obvious.

Oh, oh, oh, I know!   I know!   Same number of tick marks in "" and in ''''!

But seriously, this whole area gets wonderfully murky when writing 
commands that write commands.  Doubling becomes quadrupling.

The whole area is even more fun to jit given command substitution, and 
should that particular performance discussion arise anew.




-- 
Pure Personal Opinion | HoffmanLabs LLC 




More information about the Info-vax mailing list