From: eap Date: Wed, 2 Mar 2011 16:36:03 +0000 (+0000) Subject: 0021196: [CEA 456] Integration and merge modification for debian packages X-Git-Tag: V6_main_20110309~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ba9e93f27d47a0ac9eaa884a753b5676da4e7168;p=modules%2Fvisu.git 0021196: [CEA 456] Integration and merge modification for debian packages 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 --- diff --git a/src/VISU_I/VISU_TimeAnimation.cxx b/src/VISU_I/VISU_TimeAnimation.cxx index 6e45c8bd..24d6ffae 100644 --- a/src/VISU_I/VISU_TimeAnimation.cxx +++ b/src/VISU_I/VISU_TimeAnimation.cxx @@ -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); }