line numbers are false after (...) || {...}

2021-10-21 Thread kovacs istvan
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -fdebug-prefix-map=/build/bash-2bxm7h/bash-5.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wno-parentheses -Wno-format-security uname o

Re: line numbers are false after (...) || {...}

2021-10-21 Thread Alex fxmbsw7 Ratchev
i guess this is cause the code u wrote didnt get executed so it didnt count On Thu, Oct 21, 2021, 16:17 kovacs istvan wrote: > Configuration Information [Automatically generated, do not change]: > Machine: x86_64 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -g -O2 > -fdebug-prefix-map=/

Re: line numbers are false after (...) || {...}

2021-10-21 Thread Emanuele Torre
This has been fixed in bash5.1 bash-5.1$ cat ~/tester #!/bin/bash ( echo foo; ) || { echo bar# 4.line echo bar# 5.line } # 6.line echo lineno: $LINENO # 7.line [[ -e bla]] # 8.line bash-5.1$ ~/tester foo lineno: 7 /home