1
vote
Why does bash $LINENO change inside an inner block in a function?
From one of the dustier corners of POSIX:
The expansion of $LINENO inside a shell function is only relative to the
function start if the shell is interactive -- if the shell is running a
script, $...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
shell-script × 16825bash × 6989
shell × 2438
linux × 1944
scripting × 1187
text-processing × 1125
awk × 1007
sed × 856
files × 501
grep × 483
command-line × 423
ssh × 384
find × 377
variable × 339
ubuntu × 310
zsh × 309
cron × 287
regular-expression × 249
ksh × 234
quoting × 231
pipe × 226
io-redirection × 218
terminal × 206
date × 199
rename × 182