Wallex
10-20-2002, 02:45 AM
#!/bin/bash
valueOk() {
return 0
}
result=valueOk
exit $result
That's all... and it's wrong. exit: bad non-numeric arg `valueOk', if instead of result=valueOk I write result=0 it will work... Hmm.. I don't know what I am doing wrong, I've rechecked a dozen times the bash scripting NHFs and I would say my code is no different from the one used there! So why it still does not works? Have I overlooked something basic?
valueOk() {
return 0
}
result=valueOk
exit $result
That's all... and it's wrong. exit: bad non-numeric arg `valueOk', if instead of result=valueOk I write result=0 it will work... Hmm.. I don't know what I am doing wrong, I've rechecked a dozen times the bash scripting NHFs and I would say my code is no different from the one used there! So why it still does not works? Have I overlooked something basic?