zsh-workers
 help / color / mirror / code / Atom feed
From: Dave Yost <Dave@Yost.com>
To: zsh-workers@zsh.org
Subject: setopt temporarily?
Date: Thu, 20 Feb 2014 13:06:20 -0800	[thread overview]
Message-ID: <8458DC5E-E862-462A-BFCF-FFA2BDEB29C8@yost.com> (raw)

One can set an environment variable only for the command that follows:

    foo=bar echo $foo 

It would be nice to be able similarly to temporarily set an option.

Perhaps setopt could terminate its arg parsing with a - or -- like this:

    setopt pushdSilent - pushd Desktop

Or maybe there needs to be a more general syntax for changing anything in zsh only for the following command.

             reply	other threads:[~2014-02-20 21:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-20 21:06 Dave Yost [this message]
2014-02-20 23:33 ` Phil Pennock
2014-02-21  2:45   ` 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=8458DC5E-E862-462A-BFCF-FFA2BDEB29C8@yost.com \
    --to=dave@yost.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).