diff options
author | Craig A. Berry <craigberry@mac.com> | 2001-09-25 13:08:42 -0500 |
---|---|---|
committer | Abhijit Menon-Sen <ams@wiw.org> | 2001-09-25 22:33:05 +0000 |
commit | 46112e174804584fc24d38cb46fafc2d960efc72 (patch) | |
tree | e3629a7cdf18c036349693db772abb51f3c89a68 /vms | |
parent | a94ed19dea1a41f7a48446540697e6cb4ce21471 (diff) | |
download | perl-46112e174804584fc24d38cb46fafc2d960efc72.tar.gz |
angle bracket filespec problem on VMS
Message-Id: <5.1.0.14.0.20010925154848.036887d8@exchi01>
p4raw-id: //depot/perl@12217
Diffstat (limited to 'vms')
-rw-r--r-- | vms/vms.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2766,6 +2766,10 @@ static char *mp_do_fileify_dirspec(pTHX_ char *dir,char *buf,int ts) dir[--dirlen] = '\0'; dir[dirlen-1] = ']'; } + if (dirlen >= 2 && !strcmp(dir+dirlen-2,".>")) { + dir[--dirlen] = '\0'; + dir[dirlen-1] = '>'; + } if ((cp1 = strrchr(dir,']')) != NULL || (cp1 = strrchr(dir,'>')) != NULL) { /* If we've got an explicit filename, we can just shuffle the string. */ @@ -2988,6 +2992,7 @@ static char *mp_do_fileify_dirspec(pTHX_ char *dir,char *buf,int ts) else if (ts) New(1312,retspec,retlen+16,char); else retspec = __fileify_retbuf; cp1 = strstr(esa,"]["); + if (!cp1) cp1 = strstr(esa,"]<"); dirlen = cp1 - esa; memcpy(retspec,esa,dirlen); if (!strncmp(cp1+2,"000000]",7)) { |