Re: [PATCH V2 2/4] bash-completion:fix shellcheck SC2207-Warning

2022-12-01 Thread Daniel Kiper
On Wed, Nov 30, 2022 at 04:30:58PM +0800, t.feng wrote: > SC2207 (warning): Prefer mapfile or read -a to split > command output (or quote to avoid splitting). > > In grub-completion.bash.in line 56: > COMPREPLY=($(compgen -P "${2-}" -W "${1-}" -S "${4-}" -- > "$cur")) >^

[PATCH V2 2/4] bash-completion:fix shellcheck SC2207-Warning

2022-11-30 Thread t.feng via Grub-devel
SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). In grub-completion.bash.in line 56: COMPREPLY=($(compgen -P "${2-}" -W "${1-}" -S "${4-}" -- "$cur")) ^-- SC2207 (warning) In grub-completion.bash.in line 119: COM