summaryrefslogtreecommitdiff
path: root/vms/vms.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-03-11 20:04:33 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-03-11 20:04:33 +0000
commit773da73dfa33b0e98b1b569c181e560f7f7a579f (patch)
treed49844ab9127dc52bc76596a9cc57ea0732ca8fd /vms/vms.c
parent5a2f86394dfa86bd3184e3ae8a7546e06047c35c (diff)
downloadperl-773da73dfa33b0e98b1b569c181e560f7f7a579f.tar.gz
"""glob.*""" patch for VMS, from Peter Prymmer.
p4raw-id: //depot/perl@18927
Diffstat (limited to 'vms/vms.c')
-rw-r--r--vms/vms.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/vms/vms.c b/vms/vms.c
index aa9421d6bf..e0788f8508 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -4252,6 +4252,7 @@ static void mp_expand_wild_cards(pTHX_ char *item,
int expcount = 0;
unsigned long int context = 0;
int isunix = 0;
+int item_len = 0;
char *had_version;
char *had_device;
int had_directory;
@@ -4271,6 +4272,20 @@ unsigned long int zero = 0, sts;
add_item(head, tail, item, count);
return;
}
+ else
+ {
+ /* "double quoted" wild card expressions pass as is */
+ /* From DCL that means using e.g.: */
+ /* perl program """perl.*""" */
+ item_len = strlen(item);
+ if ( '"' == *item && '"' == item[item_len-1] )
+ {
+ item++;
+ item[item_len-2] = '\0';
+ add_item(head, tail, item, count);
+ return;
+ }
+ }
resultspec.dsc$b_dtype = DSC$K_DTYPE_T;
resultspec.dsc$b_class = DSC$K_CLASS_D;
resultspec.dsc$a_pointer = NULL;