test: fix egrep deprecation warning, ignore .zcompdump

egrep is obsolescent; use grep -E. The ztst run generates .zcompdump
in the repo root; ignore it so it never gets committed.
This commit is contained in:
Tom Hale 2026-08-18 18:08:20 +07:00
parent 462e6c3dd5
commit dfb27f686c
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
*.zwc
.zcompdump

View file

@ -5,7 +5,7 @@
export LC_ALL=C
ZSH_TEST_LANG=
langs=(en_{US,GB}.{UTF-,utf}8 en.UTF-8
$(locale -a 2>/dev/null | egrep 'utf8|UTF-8'))
$(locale -a 2>/dev/null | grep -E 'utf8|UTF-8'))
for LANG in $langs; do
if [[ é = ? ]]; then
ZSH_TEST_LANG=$LANG