KSH the second
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"
Posted on
Feb 17, 2012 at 16:37