zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-workers@zsh.org
Subject: Re: Regarding emulate: a thought, and refresh my memory?
Date: Tue, 6 Mar 2012 20:06:52 +0000	[thread overview]
Message-ID: <20120306200652.1617879b@pws-pc.ntlworld.com> (raw)
In-Reply-To: <120303172521.ZM11549@torch.brasslantern.com>

On Sat, 03 Mar 2012 17:25:21 -0800
Bart Schaefer <schaefer@brasslantern.com> wrote:
> The code in bin_emulate dating all the way back to Andrej's patch in
> zsh-workers/26425 rejects the combination of -L and -c.  The stated
> reason for this is "do not confuse user who reads manuals."  However,
> the -c option always restores everything at the end, and anyway one
> can always run
>     emulate zsh -c 'setopt localoptions; ...'
> so I'm hoping someone can remind me why we bother throwing an error
> on that combination.

I can't imagine there's anything fundamental about it.
 
> The reason I ask is because it suddenly popped into my head that the
> emulate command might just as well parse other startup-time options
> besides just -c.

Can't see why not.  I often do "emulate -L zsh; setopt extendedglob
cbases", it would be sensible to put that in one command.

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


  parent reply	other threads:[~2012-03-06 20:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-04  1:25 Bart Schaefer
2012-03-06  8:27 ` PATCH " Bart Schaefer
2012-03-06 20:06 ` Peter Stephenson [this message]
2012-03-06 20:22   ` Stephane Chazelas
2012-03-07  6:38     ` Bart Schaefer
2012-03-07 11:34       ` Stephane Chazelas
2012-03-07 17:45         ` Bart Schaefer
2012-03-08  8:38           ` Stephane Chazelas
2012-03-08 15:08             ` Bart Schaefer

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=20120306200652.1617879b@pws-pc.ntlworld.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=zsh-workers@zsh.org \
    /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).