From da63123229abcff228566b4a2c0812f7e9f596a6 Mon Sep 17 00:00:00 2001 From: tsi Date: Tue, 21 Oct 2025 00:40:36 +0200 Subject: [PATCH] #1: Remove _closing_paren regex as it doesn't make sense --- bash-abbr | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bash-abbr b/bash-abbr index effbf2f..975b791 100644 --- a/bash-abbr +++ b/bash-abbr @@ -19,15 +19,13 @@ _control_op () { _bg_proc_or_and_and='[^&;]&&?' \ _pipe_or_or_or='[^&|;]\|\|?' \ _semicolon_or_case_operators='[^;|];;?&?' \ - _opening_paren='[^[:alnum:]]\(' \ - _closing_paren='\)' + _opening_paren='[^[:alnum:]]\(' declare _control_op="^" _control_op+="|$_newline" _control_op+="|$_bg_proc_or_and_and" _control_op+="|$_pipe_or_or_or" _control_op+="|$_semicolon_or_case_operators" _control_op+="|$_opening_paren" - _control_op+="|$_closing_paren" printf %s "$_control_op" } _control_op="$(_control_op)"