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

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



tonguc@terra:~% setopt LOCAL_OPTIONS
setopt: no such option: LOCAL_OPTIONS

On the other hand this works fine:

tonguc@terra:~% setopt localoptions

The ksh mode was my mistake. I misinterpreted the man page.

Thus saith Peter Stephenson :
> 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/

-- 
Sevgi Saygı GNU/Linux
########################################################################
All seems condemned in the long run to approximate a state akin to
Gaussian noise.
		-- James Martin
########################################################################
Tonguç Yumruk

Attachment: signature.asc
Description: Digital signature



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