$ bash -uv g
case $1 in a)
LOTS of code here
esac
g: line 9: $1: unbound variable
Line 9? The problem happened at line 1 and you're sending me on a wild
goose chase to line 9 just because that's where the case-esac statement ends!?
Problem doesn't occur with if-fi.
[Prev in Thread]
Current Thread
[Next in Thread]
better -u line number reporting on case-esac,
Dan Jacobson<=