Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] docs: Move aliases corner case to the dangerous bends section. (after 41482)
- X-seq: zsh-workers 41939
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] docs: Move aliases corner case to the dangerous bends section. (after 41482)
- Date: Thu, 19 Oct 2017 18:10:29 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=L9k0sRD3Wsa7zsJQt 8fyIYJ+WHm/VVqmjZlqJS6k3Pw=; b=H7sk1CMJpdFvFm1kC5QJDHaLfWOVDBVcZ dfhmadzOv+tP28f1Z6+Ii974+CFH3MzKRs/AKY0l2kFieh/5jQejKAvGbleuGJNc d2HDg0mpuC3jCeJs0H2YW32yzJAoXAjL5tzalrOuqlp5XFvYplHxkHnUdy08f72e xVys8rnUG7cldpbovbQAVIy9d3Abf7tFsSnMxf1S5t4F6MgBNRHK77jAU9DSwKNU MeoSymq7PPKdMZTDBJGV7eCGVtjH2eyMXUGZNmN2BJ6FdiFvdmwciT8J3bZwvdqD vpQ7qi19C1mjdyJnIZnwXHEouYDJTgxKv9PcuD5/gX9VM2t+Q4Szg==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=L9k0sRD3Wsa7zsJQt 8fyIYJ+WHm/VVqmjZlqJS6k3Pw=; b=p2Jfczo+vDi3t5FmUGLeDD5WHeFTN+3uD s/SsI27xqwXBe6ufUZTUevNCkmhSJ06xBwQHv8xT3bkcDrGMWERWBZfMwV03W11Q p0WveHMD7KDt2+0/24uTsYoelj6blPyTogpGg+6AC/snLOXiAJZTIPCiCECH9CVy BqokrsZabg4/0ucAeybXu8v0aqieik8Cc/Li30z/pHn5F05z269zOz7HSGV+Y5LW XMX/vkg8WcEZ1ogMuMuEccmsfwJg+kA48r7qRTZ+YUjpUFjWKoQ6uLgZzml02tBQ RgUwLy9QTG3QyqF743CZATGu2nB4lTKK6O8EHqVedT5aXsSf+LSLQ==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
---
I didn't re-wrapped because 1) the output is unaffected by input wrapping,
2) leaving it this way makes diff/blame's output cleaner.
Doc/Zsh/grammar.yo | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/Doc/Zsh/grammar.yo b/Doc/Zsh/grammar.yo
index bd7727298..f9600424e 100644
--- a/Doc/Zsh/grammar.yo
+++ b/Doc/Zsh/grammar.yo
@@ -573,9 +573,7 @@ except history expansion. Therefore, if an alias is defined for the
word tt(foo), alias expansion may be avoided by quoting part of the
word, e.g. tt(\foo). Any form of quoting works, although there is
nothing to prevent an alias being defined for the quoted form such as
-tt(\foo) as well. Also, if a separator such as tt(&&) is aliased,
-tt(\&&) turns into the two tokens tt(\&) and tt(&), each of which may
-have been aliased separately. Similarly for tt(\<<), tt(\>|), etc.
+tt(\foo) as well.
When tt(POSIX_ALIASES) is set, only plain unquoted strings are eligible
for aliasing. The tt(alias) builtin does not reject ineligible aliases,
@@ -610,6 +608,9 @@ It is not presently possible to alias the `tt(LPAR()LPAR())' token that
introduces arithmetic expressions, because until a full statement has been
parsed, it cannot be distinguished from two consecutive `tt(LPAR())'
tokens introducing nested subshells.
+Also, if a separator such as tt(&&) is aliased,
+tt(\&&) turns into the two tokens tt(\&) and tt(&), each of which may
+have been aliased separately. Similarly for tt(\<<), tt(\>|), etc.
There is a commonly encountered problem with aliases
illustrated by the following code:
Messages sorted by:
Reverse Date,
Date,
Thread,
Author