]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
0021196: [CEA 456] Integration and merge modification for debian packages
authoreap <eap@opencascade.com>
Wed, 2 Mar 2011 16:36:03 +0000 (16:36 +0000)
committereap <eap@opencascade.com>
Wed, 2 Mar 2011 16:36:03 +0000 (16:36 +0000)
visu-replace-csh-stderr.patch

  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/VISU_I/VISU_TimeAnimation.cxx

index 6e45c8bd7f63f8814ea3e80e732f71991d118580..24d6ffae5e051fd065310a0887250c49e2c9e0c3 100644 (file)
@@ -1685,7 +1685,7 @@ bool VISU_TimeAnimation::checkAVIMaker() const
 
   QString aCmd("which ");
   aCmd += myAVIMaker;
-  aCmd += " >& /dev/null";
+  aCmd += " 2> /dev/null";
   int iErr = system(aCmd.toLatin1().data());
   return (iErr == 0);
 }