Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: On the quoting of braces
On Dec 23, 8:34pm, Christian Neukirchen wrote:
}
} When I force _main_complete to be loaded *before* setting
} IGNORE_CLOSE_BRACES with
}
} autoload +X -Uz _main_complete
}
} it works, even though _comp_options specifies NO_ignoreclosebraces, so
} this option shouldn't even be set in _main_complete.
As you discovered, because the option affects parsing, it has to be
off during the loading of the completion system (or any of the other
functions written for native zsh). Similarly teh options SHORT_LOOPS,
RC_QUOTES, various CSH_JUNKIE_ options, POSIX_ALIASES, POSIX_STRINGS,
POSIX_IDENTIFIERS, and likely C_PRECEDENCES and OCTAL_ZEROES, must be
set to their default values to avoid parsing problems.
It might be worth adding an option to autoload that works like -z but
extends to the whole set of options covered by "emulate -R". Of course
you can get that with
emulate -R zsh -c 'autoload -Uz ...'
but that's a bit inconvenient.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author