]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/contrib] Factor out grep_or and sed_or in spellcheck.sh
authorTom de Vries <tdevries@suse.de>
Tue, 8 Oct 2024 06:24:13 +0000 (08:24 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 8 Oct 2024 06:24:13 +0000 (08:24 +0200)
commit99fd53b19dddeb232e169cc5a3918a2adf7d3da2
tree865a3b2116b971868b10ac9e19dff5f75b720c7d
parent124deb310116982fbd921ab1dc83fa75a8252391
[gdb/contrib] Factor out grep_or and sed_or in spellcheck.sh

While trying to add more separators here:
...
 # Separators: space, slash, tab.
 grep_separator=" |/| "
 sed_separator=" \|/\|\t"
...
I mistakingly used "|" instead of "\|" in sed_separator.

Factor out new variables grep_or and sed_or, and construct the grep_separator
and sed_separator variables by joining the elements of a list using grep_or
and sed_or.

Verified with shellcheck, and tested by rerunning on x86_64-linux.

Reviewed-By: Alexandra Petlanova Hajkova <ahajkova@redhat.com>
gdb/contrib/spellcheck.sh