Smarter handling of escaped semicolons in vmsify.
authorCraig A. Berry <craigberry@mac.com>
Fri, 7 Mar 2014 00:39:18 +0000 (18:39 -0600)
committerCraig A. Berry <craigberry@mac.com>
Fri, 7 Mar 2014 00:39:18 +0000 (18:39 -0600)
commitd5e61aaf9d7051b13636e9a4002cf6b4a47f6d78
tree8f4424c922f758c1e412c53866a0a8702714804a
parentde29d7249495cfea30847f736f3c068ce6844596
Smarter handling of escaped semicolons in vmsify.

In theory, a Unix-format filespec can contain a semicolon and thus
need to be escaped when converted to a VMS-format filespec.  But
a much more common use case is a filespec that has a version
number despite being in Unix format.

So detect a semicolon that delimits a version specification and
pass it through but escape other semicolons.  This is apparently
what decc$to_vms does, so we're being consistent with the CRTL.
ext/VMS-Filespec/t/filespec.t
vms/vms.c