zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] docs: Move aliases corner case to the dangerous bends section.  (after 41482)
@ 2017-10-19 18:10 Daniel Shahaf
  0 siblings, 0 replies; only message in thread
From: Daniel Shahaf @ 2017-10-19 18:10 UTC (permalink / raw)
  To: zsh-workers

---
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:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-10-19 18:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-19 18:10 [PATCH] docs: Move aliases corner case to the dangerous bends section. (after 41482) Daniel Shahaf

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).