>On Sunday, November 15, 2020, 07:45:06 PM GMT, Bart Schaefer <schaefer@brasslantern.com> wrote:

>>On Sat, Nov 14, 2020 at 3:06 PM vapnik spaknik <vapniks@yahoo.com> wrote:
>>> a quick fix would be to just add 'noflowcontrol' to the 'setopt' line near the start of the function.

>Hm.  The problem with that is that people who want flow control suddenly lose it.

Are you sure about that? In the documentation for emulate it says: "If the -L switch is given, the options LOCAL_OPTIONS, LOCAL_PATTERNS and LOCAL_TRAPS will be set as well, causing the effects of the emulate command and any setopt, disable -p or enable -p, and trap commands to be local to the immediately surrounding shell function, if any"