components/parallel/patches/src.sql.patch
branchs11-update
changeset 2560 b47f3c154b60
child 5383 daa35fd7ea40
equal deleted inserted replaced
2559:27a0ff057a54 2560:b47f3c154b60
       
     1 This patch is needed because the sql script is expecting the which 
       
     2 command to return errors on stderr, not stdout and assumes anything
       
     3 on stdout is an actual path.   (And since /bin/which starts a new 
       
     4 csh, it only checks .cshrc $PATH not current $PATH settings.)
       
     5 
       
     6 --- parallel-20120422/src/sql.orig	2012-12-11 13:21:20.855778203 -0800
       
     7 +++ parallel-20120422/src/sql	2012-12-11 13:22:33.870295549 -0800
       
     8 @@ -890,7 +890,7 @@
       
     9  sub find_command_in_path {
       
    10      # Find the command if it exists in the current path
       
    11      my $command = shift;
       
    12 -    my $path = `which $command`;
       
    13 +    my $path = `/usr/gnu/bin/which $command`;
       
    14      chomp $path;
       
    15      return $path;
       
    16  }