diff options
author | Craig A. Berry <craigberry@mac.com> | 2007-05-20 01:00:31 +0000 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2007-05-20 01:00:31 +0000 |
commit | ff6757447f8d7d8be9f1cef7f35b9de657c4763e (patch) | |
tree | 5597fb873077bb216dfd9a23877713ae931759b5 /vms | |
parent | 70cd14a10b623c21342f84d4826106411378add8 (diff) | |
download | perl-ff6757447f8d7d8be9f1cef7f35b9de657c4763e.tar.gz |
Make VMS's home-grown glob() recognize a directory even without
tell-tale punctuation.
p4raw-id: //depot/perl@31240
Diffstat (limited to 'vms')
-rw-r--r-- | vms/vms.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -11968,6 +11968,8 @@ Perl_vms_start_glob if (!stat_sts && S_ISDIR(st.st_mode)) { wilddsc.dsc$a_pointer = tovmspath_utf8(SvPVX(tmpglob),vmsspec,NULL); ok = (wilddsc.dsc$a_pointer != NULL); + /* maybe passed 'foo' rather than '[.foo]', thus not detected above */ + hasdir = 1; } else { wilddsc.dsc$a_pointer = tovmsspec_utf8(SvPVX(tmpglob),vmsspec,NULL); |