[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
better -u line number reporting on case-esac
From: |
Dan Jacobson |
Subject: |
better -u line number reporting on case-esac |
Date: |
Fri, 21 May 2004 06:03:16 +0800 |
$ 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 <=