]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0021196: [CEA 456] Integration and merge modification for debian packages
authoreap <eap@opencascade.com>
Tue, 1 Mar 2011 13:38:18 +0000 (13:38 +0000)
committereap <eap@opencascade.com>
Tue, 1 Mar 2011 13:38:18 +0000 (13:38 +0000)
Replace >& csh construct by 2>

The former is recognized by bash, but not all by POSIX
shells, for instance dash throws this error:
  sh: Syntax error: Bad fd number

src/SVTK/SVTK_Recorder.cxx

index bba8a401f580fa815a90b719ea9dcc36d2426f88..2b4758590aea0cb3485ef182ce57e029eaf07da2 100755 (executable)
@@ -116,7 +116,7 @@ SVTK_Recorder
   myErrorStatus = 0;
   using namespace std;
   ostringstream aStream;
-  aStream<<"which "<<myNameAVIMaker<<" >& /dev/null";
+  aStream<<"which "<<myNameAVIMaker<<" 2> /dev/null";
   std::string anAVIMakeCheck = aStream.str();
   int iErr = system(anAVIMakeCheck.c_str());
   if(iErr != 0)