zsh-workers
 help / color / mirror / code / Atom feed
From: Tonguc Yumruk <tongucyumruk@fazlamesai.net>
To: Peter Stephenson <p.w.stephenson@ntlworld.com>
Cc: 457076@bugs.debian.org, zsh-workers@sunsite.dk
Subject: Re: Bug#457076: zsh: is-at-least does not work properly
Date: Wed, 19 Dec 2007 22:41:07 +0200	[thread overview]
Message-ID: <20071219204107.GA3860@terra.galaxy> (raw)
In-Reply-To: <20071219200145.c8e68def.p.w.stephenson@ntlworld.com>

[-- Attachment #1: Type: text/plain, Size: 1321 bytes --]

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@debian.org> 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@ntlworld.com>
> 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 #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2007-12-19 21:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20071219151458.GA4123@terra.galaxy>
2007-12-19 19:19 ` Clint Adams
2007-12-19 20:01   ` Peter Stephenson
2007-12-19 20:41     ` Tonguc Yumruk [this message]
2007-12-19 21:46       ` Peter Stephenson
2007-12-19 22:13         ` Ismail Dönmez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071219204107.GA3860@terra.galaxy \
    --to=tongucyumruk@fazlamesai.net \
    --cc=457076@bugs.debian.org \
    --cc=p.w.stephenson@ntlworld.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).