Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Caveats of setopt magic_equal_subst
- X-seq: zsh-users 15095
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Caveats of setopt magic_equal_subst
- Date: Sun, 6 Jun 2010 18:42:08 +0100
- In-reply-to: <alpine.LNX.2.01.1006041541370.5029@xxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <alpine.LNX.2.01.1006041541370.5029@xxxxxxxxxxx>
On Fri, 4 Jun 2010 15:49:49 -0400 (EDT)
"Benjamin R. Haskell" <zsh@xxxxxxxxxx> 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@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author