This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Unquote spawned command verbs on VMS.
authorCraig A. Berry <craigberry@mac.com>
Thu, 5 Jul 2012 23:22:46 +0000 (18:22 -0500)
committerCraig A. Berry <craigberry@mac.com>
Fri, 6 Jul 2012 02:16:32 +0000 (21:16 -0500)
commit22831cc58b7641c7a2f9dfe9514021980919e264
treea1e271af98c308753013b5e0d35a4932297effb8
parentc2900bb8185ddf2411dcf67573ec1c2e991d6dba
Unquote spawned command verbs on VMS.

Prior to the current change,

$ foo "A" "b" "c"

worked, but the following didn't:

$ "foo" "A" "b" "c"
%DCL-E-PARSEFAIL, error parsing DCL$PATH:"foo".*
-RMS-F-FNM, error in file name

even if foo was a valid command or path.  It's illegal in DCL to
quote the command verb even if it's often necessary to quote the
parameters to it.

But various things in the wild (such as Test::Harness::_filtered_inc),
find it convenient or necessary to quote the command verb, so the
easiest way to support that is to unquote it before DCL sees it, and
that's what this change does.

Also, spaces within the first quoted item are now escaped so that
an image path containing spaces doesn't run afoul of subsequent
tokenizing based on spaces.
vms/vms.c