From abd004025343e8462ec14b13cb653c5568c2bcf3 Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Fri, 19 Jan 2018 22:56:11 -0800 Subject: 41839: force IFS to default for "read" --- Functions/Misc/allopt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Functions/Misc') diff --git a/Functions/Misc/allopt b/Functions/Misc/allopt index 0c521f391..5d5d2885a 100644 --- a/Functions/Misc/allopt +++ b/Functions/Misc/allopt @@ -8,7 +8,7 @@ # Written by Sweth Chandramouli with hacks by Bart Schaefer. listalloptions () { - local OPT_NAME OPT_VALUE + local OPT_NAME OPT_VALUE IFS=$' \t\n' builtin set -o | while read OPT_NAME OPT_VALUE ; do if [[ ${OPT_NAME#no} != ${OPT_NAME} ]] ; then OPT_VALUE=${(L)${${OPT_VALUE:s/on/OFF}:s/off/on}} -- cgit 1.4.1