summary refs log tree commit diff
diff options
context:
space:
mode:
authorSebastian Gniazdowski <psprint@zdharma.org>2018-01-19 22:56:11 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2018-01-19 22:56:11 -0800
commitabd004025343e8462ec14b13cb653c5568c2bcf3 (patch)
treeda82857501ad45f2a0227f4ec39ad248c51546b8
parentb816291a1796f13737424cd14d2ba174cf840f70 (diff)
downloadzsh-abd004025343e8462ec14b13cb653c5568c2bcf3.tar.gz
zsh-abd004025343e8462ec14b13cb653c5568c2bcf3.tar.xz
zsh-abd004025343e8462ec14b13cb653c5568c2bcf3.zip
41839: force IFS to default for "read"
-rw-r--r--Functions/Misc/allopt2
1 files changed, 1 insertions, 1 deletions
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}}