zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: Caveats of setopt magic_equal_subst
Date: Sun, 6 Jun 2010 18:42:08 +0100	[thread overview]
Message-ID: <20100606184208.4cb1521e@pws-pc> (raw)
In-Reply-To: <alpine.LNX.2.01.1006041541370.5029@hp.internal>

On Fri, 4 Jun 2010 15:49:49 -0400 (EDT)
"Benjamin R. Haskell" <zsh@benizi.com> wrote:
> As with so many things Zsh-related, I just discovered that something I'd 
> kind of wanted for a while was a built-in option: magic_equal_subst
> 
> I was just wondering if there were commonly-occurring situations where 
> magic_equal_subst might bite me.  It seems like the benefits will 
> outweigh having to workaround such situations, but I was just hoping to 
> get a group opinion or warning if I'm being optimistic.
> 
> My main reason for switching it on is that I use a lot of named 
> directories, and I'd like to be able to use them where command options 
> are of the form --some-option=~some/filename

I've been using it for quite some time and I'm not aware of any
problems.  Command line syntax is usually such that an "=" does
something approximately like what you expect it to.

The only slight oddity I know is that it does "=" substitution as well
as "~" substitution:

% echo animal==cat
animal=/bin/cat

but none of the places I know about where "==" is significant occur in
arguments like that.

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


      reply	other threads:[~2010-06-06 17:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-04 19:49 Benjamin R. Haskell
2010-06-06 17:42 ` Peter Stephenson [this message]

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=20100606184208.4cb1521e@pws-pc \
    --to=p.w.stephenson@ntlworld.com \
    --cc=zsh-users@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).