Re: VMS shell quoting help

Michael G Schwern <[email protected]>
Newsgroups gmane.comp.lang.perl.ports.vms
Message-ID <[email protected]>
Craig A. Berry wrote:
> Single quotes cause symbol expansion.  Inside double quotes, that
> normally doesn't happen, but you can force it to by doubling the first
> single quote:

I keep a list of bad language design ideas.  I'm going to add this one.  "Have
no quoting which doesn't include magic characters".


> In this case maybe
> 
> '[.blib.lib.auto]', '$(PM_FILTER)', '$(PERM_DIR)'
> 
> could become
> 
> q{[.blib.lib.auto]}, q{$(PM_FILTER)}, q{$(PERM_DIR)}

That's about what I wound up doing, thanks for the info.

It would be nice if this could somehow be handled in MM_VMS->quote_literal(),
but I won't hold my breath.


-- 
If you want the truth to stand clear before you, never be for or against.
The struggle between "for" and "against" is the mind's worst disease.
    -- Sent-ts'an
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.