1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 10:01:11 +02:00

41839: force IFS to default for "read"

This commit is contained in:
Sebastian Gniazdowski 2018-01-19 22:56:11 -08:00 committed by Barton E. Schaefer
parent b816291a17
commit abd0040253

View file

@ -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}}