this bug this branch was meant to fix was caused by word splitting. surrounding

$ans in double quotes stopped that, but it also disabled globbing which is
desired. this commit switches to just disabling word splitting.
This commit is contained in:
Nathan Sketch
2021-01-07 09:45:12 -05:00
parent 7b21d545b3
commit 1bbd788ee0
+4 -2
View File
@@ -357,9 +357,11 @@ main() {
/?)
prompt / r
# word splitting and globbing intentional
IFS=
# globbing intentional, word splitting is disabled.
# shellcheck disable=2086
set -- "$ans"*
set -- $ans*
unset IFS
case $1$# in
"$ans*1") set -- 'no results'