Ticket #160: base.diff

File base.diff, 955 bytes (added by Tellie, 8 years ago)
  • \Base.pm

    old new  
    30953095
    30963096    my ($cmd, $arg) = (split(' ', $line, 2), '');
    30973097    next unless $cmd =~ /perl/i;
    3098     my $interpreter = $self->{properties}{perl};
     3098    my $interpreter;
     3099    if ($self->is_os2ish) {
     3100      $interpreter = '/@unixroot/usr/bin/perl';
     3101    } else {
     3102      $interpreter = $self->{properties}{perl};
     3103    }
    30993104
    31003105    $self->log_verbose("Changing sharpbang in $file to $interpreter\n");
    31013106    my $shb = '';
     
    31063111    $shb .= qq{
    31073112eval 'exec $interpreter $arg -S \$0 \${1+"\$\@"}'
    31083113    if 0; # not running under some shell
    3109 } unless $self->is_windowsish; # this won't work on win32, so don't
     3114} unless $self->is_windowsish or $self->is_os2ish; # this won't work on win32, so don't
    31103115
    31113116    my $FIXOUT = IO::File->new(">$file.new")
    31123117      or die "Can't create new $file: $!\n";