LINENO is affected by sync

2021-09-01 Thread David Collier
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

Re: LINENO is affected by sync

2021-09-01 Thread David Collier
's going to be anything simple like that. This happens again at intervals - wrong by different small numbers I think - weirdly enough the next time it happens is also near a 'sync' operation - which is what misled me. Anyway - apologies for the red herring any suggestion welcome. Do t

Re: LINENO is affected by sync

2021-09-02 Thread David Collier
l need to put money where mouth is on that. I will put some effort into minimising the content of an example - but starting with 2800 lines that could be much effort. Thanks David On Wed, Sep 1, 2021 at 6:09 PM Greg Wooledge wrote: > On Wed, Sep 01, 2021 at 04:52:29PM +0100, David Collier wrote: