Allow null (empty) assignment words

This commit is contained in:
tsi 2026-01-03 01:24:21 +01:00
parent 275a1ccd84
commit 1cb02b0334
No known key found for this signature in database

View file

@ -168,7 +168,7 @@ _redir_or_assign_word () {
_part+="|$_arithmetic_eval"
_part+="|$_process_substition"
_part+="|$_escaped_char"
declare -r _word="($_part)+" \
declare -r _word="($_part)*" \
_close_redirection="($_varredir_or_number)($_redir_in_or_out)($_close_or_move_fd)" \
_generic_redirection="($_redir_or_append_out_and_err|($_varredir_or_number)($_heredoc_herestring_in_out_etc))"
# shellcheck disable=SC1087