hush: LINENO fix
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 8 Feb 2018 18:19:04 +0000 (19:19 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 8 Feb 2018 18:19:04 +0000 (19:19 +0100)
commit5807e18f0c4f6fc247103830affcab73ca1ffa37
tree1f67e7c1ea532803ecbcbd30b6053d3b2fd4222b
parent68ae54243cacee6beeb69842c7d562435acd5ad1
hush: LINENO fix

Script triggering the bug:

t=0
echo "at line ${LINENO}"
while [ ${t} -lt 10 ]; do
echo "at line ${LINENO}"  # LINENO was 3 instead of 4 here
t=$((t+1))
done

function                                             old     new   delta
parse_stream                                        2754    2788     +34
done_word                                            711     738     +27
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 61/0)               Total: 61 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/hush.c