Changeset 1115 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/Base.pm


Ignore:
Timestamp:
Nov 26, 2010, 12:54:28 PM (13 years ago)
Author:
Bruno Cornec
Message:

r4056@localhost: bruno | 2010-11-25 19:38:07 +0100

  • Fix a bug in pb_system when using redirctions in the command
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/Base.pm

    r1077 r1115  
    148148unlink("$ENV{'PBTMP'}/system.log") if (-f "$ENV{'PBTMP'}/system.log");
    149149$redir = "2>> $ENV{'PBTMP'}/system.log 1>> $ENV{'PBTMP'}/system.log" if ((! defined $verbose) || ($verbose ne "noredir"));
     150# If there is a redirection in the command, then do not redirect in system.log
     151# as you won't get the redirection working as expected
     152$redir = "" if ($cmd =~ /\>/);
    150153system("$cmd $redir");
    151154my $res = $?;
Note: See TracChangeset for help on using the changeset viewer.