Shell scripting errors on Ubuntu\Kubuntu

If you are using Kubuntu and trying to run shell scripts for (say) building a kernel or a tool-chain, you probably would have encountered some errors. This is because /bin/sh is actually a symlink to /bin/dash in Kubuntu which seems to have some problems running "sh" scripts.

The solution is to create a symlink to /bin/bash instead.

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


I faced the same problem while compiling the LTIB on my machine.