Re: LINENO is affected by sync

2021-09-02 Thread David Collier
Not sure I can go with that analysis. To put it politely I don't think you've looked at the code and output in enough detail. Ignore the first 'trace' line - it just happens to be there. The substantive issue - LINENO going backwards - occurs across four source lines, two of which are blank, and in

Re: LINENO is affected by sync

2021-09-01 Thread Greg Wooledge
On Wed, Sep 01, 2021 at 04:52:29PM +0100, David Collier wrote: > greg - I'm sorry - I assume there is a proper place for me to post > follow-up info, can you let me know where it is? On the bug-bash mailing list is fine. If the script is too big to post on bug-bash, then it's not useful for debug

Re: LINENO is affected by sync

2021-09-01 Thread David Collier
greg - I'm sorry - I assume there is a proper place for me to post follow-up info, can you let me know where it is? I could try for a short script, but this thing is a bit like herding eels. I narrowed it down to a single line containing 'sync' - but as you say that's clearly impossible. And to my

Re: LINENO is affected by sync

2021-09-01 Thread Chet Ramey
On 9/1/21 5:36 AM, David Collier wrote: > 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 I can't reprodude this. -- ``The lyf so short, the craft so long to l

Re: LINENO is affected by sync

2021-09-01 Thread Greg Wooledge
On Wed, Sep 01, 2021 at 10:36:21AM +0100, David Collier wrote: > 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 \$LINE

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