Problem in a shell ;)

Well, i tried to do this

But when i want to start the servers i got this error:

bin/mysqld_safe_test: 174: [: gcomm://: unexpected operator

well, the server started but i don’t like errors so tried to find the reason. After 2 hours of debugging i finally found it.

in mysqld_safe:

#!/bin/sh

changing the shebang to

#!/bin/bash

removes the error