KSH the second

Published on 17 February 2012

Woe unto me! Earlier this day I debugged a korn shell script and were not able to find the culprit. With debugging mode

set -x

I was able to identify, that one of my variables were actualy not recognized as such. After a little bit of tearing my hair out I finaly found the little scallywag:

I had inserted an unnecessary space between the variable name and the equal-sign. Therefore the interpreter didn't understand what I wanted him to do. So remember:

"variable = value" != "variable=value"