Skip to content

Commit 99e38b2

Browse files
committed
fix(pgrep): do not rely on uncontrolled IFS
1 parent ae6da15 commit 99e38b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/pgrep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ _comp_cmd_pgrep()
3737
;;
3838
--nslist)
3939
COMPREPLY=(
40-
$(IFS="$IFS," compgen -W '$("$1" --help 2>&1 |
40+
$(IFS=$' \t\n,' compgen -W '$("$1" --help 2>&1 |
4141
command sed -ne \
4242
"s/^[[:space:]]*Available namespaces://p")' \
4343
-- "${cur##*,}"))

0 commit comments

Comments
 (0)