From: eap Date: Wed, 2 Mar 2011 15:35:34 +0000 (+0000) Subject: 0021196: [CEA 456] Integration and merge modification for debian packages X-Git-Tag: V5_1_main_FINAL~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8acc37366eaebf9ade14074a452d8b275f9c7b6c;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); }