Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: SH_GLOB influence on a script and on an autoload function



On Sep 7,  9:01pm, Sebastian Gniazdowski wrote:
}
} I sometimes think about making emulate sh a possible interactive setting.
} Let it just be that one would be able to temporarily switch to sh to check
} something and then switch back. Currently there are errors reported

Oh.  Try this:

    emulate zsh -c 'autoload compinit'

This makes zsh emulation "sticky" for all of the completion functions,
and all the functions loaded from the completion functions, etc., etc.,
which assures those functions are parsed in zsh native mode no matter
what setopts may end up in effect during their execution.



Messages sorted by: Reverse Date, Date, Thread, Author