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

Re: Bug#457076: zsh: is-at-least does not work properly



On Wed, 19 Dec 2007 14:19:34 -0500
Clint Adams <schizo@xxxxxxxxxx> wrote:
> On Wed, Dec 19, 2007 at 05:15:09PM +0200, Tonguc Yumruk wrote:
> > The is-at-least function in zsh (which is used in some other functions)
> > uses setopt LOCAL_OPTIONS which is only available in ksh emulation mode.
> > Instead it should use emulate -L zsh to use LOCAL_OPTIONS in zsh mode.
> > Patch is attached.

"setopt LOCAL_OPTIONS" should work fine in all modes.  If there are places
where it doesn't that's a bug.

It would be more consistent to use "emulate -L zsh" here but it's
exactly equivalent to what's there already.

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



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