mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 22:11:54 +02:00
41839: force IFS to default for "read"
This commit is contained in:
parent
b816291a17
commit
abd0040253
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
||||||
# Written by Sweth Chandramouli with hacks by Bart Schaefer.
|
# Written by Sweth Chandramouli with hacks by Bart Schaefer.
|
||||||
|
|
||||||
listalloptions () {
|
listalloptions () {
|
||||||
local OPT_NAME OPT_VALUE
|
local OPT_NAME OPT_VALUE IFS=$' \t\n'
|
||||||
builtin set -o | while read OPT_NAME OPT_VALUE ; do
|
builtin set -o | while read OPT_NAME OPT_VALUE ; do
|
||||||
if [[ ${OPT_NAME#no} != ${OPT_NAME} ]] ; then
|
if [[ ${OPT_NAME#no} != ${OPT_NAME} ]] ; then
|
||||||
OPT_VALUE=${(L)${${OPT_VALUE:s/on/OFF}:s/off/on}}
|
OPT_VALUE=${(L)${${OPT_VALUE:s/on/OFF}:s/off/on}}
|
||||||
|
|
Loading…
Reference in a new issue