Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Alias named '='
- X-seq: zsh-workers 41843
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Alias named '='
- Date: Mon, 9 Oct 2017 08:30:13 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=ykT+qkO7SjyW0pnzQt5rP2qaHMiEt24sgOm3h9lotMk=; b=UZA/+SDK8vxHZoW3ieL9QQm2CNyhxUCdIrZVBHMGVVWOO40rg57CBhelJiHv2+FEE+ JH7/iOIM6ub1LlP9EfCZTeIlKJXD2QtXFSAKXD7aRkLnFLig3XmRqxIl0ivdR+6zUULc eMlNCCxbuqaZTfa0vysPFKWKTzS+z/qOrfDkPH725SH72Pc6PANQEZZFoMgyUrMBAK32 1EQxePK4f8DgjYohDPncQq4bEQA9Q7BwZFa6HqheSOpRo3Ac4RoEUuZEafbyQBuwsamy WhE1MSwg8P46mPiy5bbWQQ0zd9YicHJk7ETnZBFnlpdyaHh+bKpE/BHw1syTbkiIJypZ lWZA==
- In-reply-to: <20171009162002.395c3c2b@pwslap01u.europe.root.pri>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <6e3f43ea-45b0-d6a8-43b9-18845ea4edc9@necoro.eu> <m360bqt54h.fsf@luffy.cx> <7d8ab2fa-3130-1e43-8807-f94025fd62ed@necoro.eu> <CGME20171008183934epcas3p470fe7672a1689fa0e84d328d2ffaf2b1@epcas3p4.samsung.com> <20171008183756.h45qeeqqbn2wthh3@tarpaulin.shahaf.local2> <20171009154920.017a6d87@pwslap01u.europe.root.pri> <1507561487.3332106.1132746824.170B76CC@webmail.messagingengine.com> <20171009162002.395c3c2b@pwslap01u.europe.root.pri>
On Oct 9, 4:20pm, Peter Stephenson wrote:
} Subject: Re: Alias named '='
}
} On Mon, 09 Oct 2017 15:04:47 +0000
} Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
} > Peter Stephenson wrote on Mon, 09 Oct 2017 15:49 +0100:
} > > Should we say something like this, or is it simply adding more words for
} > > people to say they can't be bothered to read it?
} >
} > I think this section should describe the common, and
} > less-common-but-still-sane, use-cases before it discusses corner cases
} > such as aliasing "((", "&&", and "x=y".
}
} So we could do something like this?
This doesn't describe what the question/discussion was about, does it?
torch% aliases[=]='echo equal'
torch% =
equal
The text you've written isn't wrong about assignment interpretation, but
it implies that the above would not work. The problem with the above is
that the alias *builtin* can't deal with it, not that it's a problem in
command position.
Also I'm abivalent about moving the text about about the "((" token as
that is closely related to the dicussion about global aliasing of other
operator-like tokens.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author