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
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)