From a1d11f97af2a3f2c353d482552fb334aa8200739 Mon Sep 17 00:00:00 2001 From: pvincent Date: Sat, 11 Jul 2026 15:46:51 +0400 Subject: [PATCH] better regex --- bin/bash-back | 2 +- useless.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/bash-back b/bin/bash-back index 199784d..0538959 100755 --- a/bin/bash-back +++ b/bin/bash-back @@ -78,7 +78,7 @@ function on_exit { stack_summary+=("ERROR $code: [$message]") fi else - regex=' .*:[0-9]* .*' + regex="^ .*:[0-9]* .*\$" [[ "$last_error" =~ $regex ]] || stack_summary+=("ERROR $code: ") fi diff --git a/useless.sh b/useless.sh index df57f24..0323e08 100755 --- a/useless.sh +++ b/useless.sh @@ -31,8 +31,8 @@ function F3 { echo start of useless F3 -. lib/utility.bash lib/utility.bash +. lib/utility.bash # >&2 echo some trace in stderr main