diff options
author | Sebastian Gniazdowski <psprint@zdharma.org> | 2018-01-19 22:56:11 -0800 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2018-01-19 22:56:11 -0800 |
commit | abd004025343e8462ec14b13cb653c5568c2bcf3 (patch) | |
tree | da82857501ad45f2a0227f4ec39ad248c51546b8 | |
parent | b816291a1796f13737424cd14d2ba174cf840f70 (diff) | |
download | zsh-abd004025343e8462ec14b13cb653c5568c2bcf3.tar.gz zsh-abd004025343e8462ec14b13cb653c5568c2bcf3.tar.xz zsh-abd004025343e8462ec14b13cb653c5568c2bcf3.zip |
41839: force IFS to default for "read"
-rw-r--r-- | Functions/Misc/allopt | 2 |
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}} |