#1: Remove _closing_paren regex as it doesn't make sense

This commit is contained in:
tsi 2025-10-21 00:40:36 +02:00
parent 269f57e8c0
commit da63123229
No known key found for this signature in database

View file

@ -19,15 +19,13 @@ _control_op () {
_bg_proc_or_and_and='[^&;]&&?' \ _bg_proc_or_and_and='[^&;]&&?' \
_pipe_or_or_or='[^&|;]\|\|?' \ _pipe_or_or_or='[^&|;]\|\|?' \
_semicolon_or_case_operators='[^;|];;?&?' \ _semicolon_or_case_operators='[^;|];;?&?' \
_opening_paren='[^[:alnum:]]\(' \ _opening_paren='[^[:alnum:]]\('
_closing_paren='\)'
declare _control_op="^" declare _control_op="^"
_control_op+="|$_newline" _control_op+="|$_newline"
_control_op+="|$_bg_proc_or_and_and" _control_op+="|$_bg_proc_or_and_and"
_control_op+="|$_pipe_or_or_or" _control_op+="|$_pipe_or_or_or"
_control_op+="|$_semicolon_or_case_operators" _control_op+="|$_semicolon_or_case_operators"
_control_op+="|$_opening_paren" _control_op+="|$_opening_paren"
_control_op+="|$_closing_paren"
printf %s "$_control_op" printf %s "$_control_op"
} }
_control_op="$(_control_op)" _control_op="$(_control_op)"