commit: 9f752fd223ce8a2539874631008d9eda83aa5ba0 Author: Kerin Millar <kfm <AT> plushkava <DOT> net> AuthorDate: Tue Jan 17 09:25:58 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Jan 17 15:06:28 2023 +0000 URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=9f752fd2
net/wpa_supplicant.sh: Properly expand the number of positional parameters ${#*} is undefined behaviour. Just write it as $#. Signed-off-by: Kerin Millar <kfm <AT> plushkava.net> Signed-off-by: Sam James <sam <AT> gentoo.org> net/wpa_supplicant.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/wpa_supplicant.sh b/net/wpa_supplicant.sh index 3f8e1b1..9f024c0 100644 --- a/net/wpa_supplicant.sh +++ b/net/wpa_supplicant.sh @@ -57,7 +57,7 @@ wpa_supplicant_pre_start() [ -z "${cliopts}" ] && cliopts=${wpa_cli} set -- $opts local opt_D - while [ ${#*} -gt 0 ]; do + while [ "$#" -gt 0 ]; do local opt=$1 ; shift case "$opt" in -D) opt_D=${1} ; shift ;;