sh: Syntax error: Bad fd number

Problem:-

When trying to install the Intel* composer XE as an User (in Ubuntu 12.04), Then we may sometimes encounter an error " sh: Syntax error. Bad fd number".

Cause:-

 If the default shell is not set to bash.

Solution:-

Perform these 2 steps below:-

sudo rm /bin/sh

sudo ln -s /bin/bash /bin/sh

After this again restart the installation.

For more complete information about compiler optimizations, see our Optimization Notice.