bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LINENO is affected by sync


From: David Collier
Subject: LINENO is affected by sync
Date: Wed, 1 Sep 2021 10:36:21 +0100

Version:

    GNU bash, version 5.0.3(1)-release (arm-unknown-linux-gnueabihf)

Raspberry Pi using Raspbian.

Installed from repo?

LINENO goes backwards when run sync

echo "================== At this point \$LINENO has correctly counted about
2800 lines=========================test @ 2832 $LINENO"
echo "=== Running 'sync' makes bash lose a few counts from \$LINENO - in
this case about ten - no idea how to fix it. ==="
    sync
echo
"========================================================================================test
@ 2835 $LINENO"


reply via email to

[Prev in Thread] Current Thread [Next in Thread]