summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorWarren Jones <wjones@tc.fluke.com>1997-06-19 21:57:20 +1200
committerTim Bunce <Tim.Bunce@ig.co.uk>1997-08-07 00:00:00 +1200
commite92c4225b24535b7128dd90f6a3e01d0abc79a1d (patch)
tree9bc85fa04fd7dc9d907b8099c46576faaf46e767 /perl.c
parent392e9e906921c3a7f1b3776746e71892a57863d3 (diff)
downloadperl-e92c4225b24535b7128dd90f6a3e01d0abc79a1d.tar.gz
Minor Win32 glitch with -S flag
This is a bug report for perl from wjones@tc.fluke.com, generated with the help of perlbug 1.17 running under perl 5.004. p5p-msgid: 97Jun19.150511pdt.35717-2@gateway.fluke.com
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index 7c84173abc..f757d11bed 100644
--- a/perl.c
+++ b/perl.c
@@ -1656,7 +1656,11 @@ SV *sv;
continue; /* don't search dir with too-long name */
strcat(tokenbuf, scriptname);
#else /* !VMS */
- if (dosearch && !strchr(scriptname, '/') && (s = getenv("PATH"))) {
+ if (dosearch && !strchr(scriptname, '/')
+#ifdef DOSISH
+ && !strchr(scriptname, '\\')
+#endif
+ && (s = getenv("PATH"))) {
bufend = s + strlen(s);
while (s < bufend) {
#ifndef atarist