* Caveats of setopt magic_equal_subst
@ 2010-06-04 19:49 Benjamin R. Haskell
2010-06-06 17:42 ` Peter Stephenson
0 siblings, 1 reply; 2+ messages in thread
From: Benjamin R. Haskell @ 2010-06-04 19:49 UTC (permalink / raw)
To: Zsh Users
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
--
Best,
Ben
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Caveats of setopt magic_equal_subst
2010-06-04 19:49 Caveats of setopt magic_equal_subst Benjamin R. Haskell
@ 2010-06-06 17:42 ` Peter Stephenson
0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2010-06-06 17:42 UTC (permalink / raw)
To: Zsh Users
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-06 17:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-04 19:49 Caveats of setopt magic_equal_subst Benjamin R. Haskell
2010-06-06 17:42 ` Peter Stephenson
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).