Made more portable by using grep -E

This commit is contained in:
2025-05-04 22:58:17 -04:00
parent b2f208473a
commit e59324a53f
2 changed files with 5 additions and 4 deletions

View File

@ -4,7 +4,7 @@ _ls() {
}
_lsp() {
printf "%s" "$*" | grep -qP '(\s|^)--zero(\s|$)'
printf "%s" "$*" | grep -qE '(^| )--zero( |$)'
local zero=$?
local args="$@"
declare -a args=(${args[@]/--zero/})