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 × 12286bash × 4213
shell-script × 2438
linux × 1455
scripting × 743
command-line × 702
zsh × 541
quoting × 500
awk × 489
terminal × 467
sed × 428
text-processing × 383
ssh × 383
io-redirection × 381
files × 376
find × 370
grep × 354
pipe × 335
wildcards × 311
environment-variables × 280
variable × 248
ubuntu × 221
posix × 206
process × 192
filenames × 173