File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ $Is_MSWin32 = $^O eq 'MSWin32';
5353$Is_VMS = $^O eq ' VMS' ;
5454$Is_os2 = $^O eq ' os2' ;
5555$Is_Cygwin = $^O eq ' cygwin' ;
56+ $Is_ZOS = $^O eq ' os390' ;
5657
5758$PERL =
5859 ($Is_VMS ? $^X :
@@ -333,7 +334,9 @@ $^X = Cygwin::win_to_posix_path(Cygwin::posix_to_win_path($^X, 1));
333334$0 = Cygwin::win_to_posix_path(Cygwin::posix_to_win_path($0, 1));
334335EOX
335336 }
336- if ($^O eq ' os390' or $^O eq ' posix-bc' ) { # no shebang
337+ if ( ($Is_ZOS && ord " A" != 65)
338+ or $^O eq ' posix-bc' )
339+ { # no shebang
337340 $headmaybe = <<EOH ;
338341 eval 'exec ./perl -S \$ 0 \$ {1+"\$\@ "}'
339342 if 0;
@@ -827,8 +830,8 @@ SKIP: {
827830 if $Is_MSWin32 && is_miniperl;
828831
829832 SKIP: {
830- skip(" clearing \% ENV is not safe when running under valgrind or on VMS" )
831- if $ENV {PERL_VALGRIND } || $Is_VMS ;
833+ skip(" clearing \% ENV is not safe when running under valgrind or on VMS or on z/OS in ASCII mode " )
834+ if $ENV {PERL_VALGRIND } || $Is_VMS || ( $Is_ZOS && ord " A " == 65) ;
832835
833836 $PATH = $ENV {PATH };
834837 $SYSTEMROOT = $ENV {SYSTEMROOT } if exists $ENV {SYSTEMROOT }; # win32
You can’t perform that action at this time.
0 commit comments