Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Removing aliases from history, 2015 style



On Mar 25,  5:57pm, Peter Stephenson wrote:
} Subject: Re: PATCH: Removing aliases from history, 2015 style
}
} Well, it's obviously not *that* broken.
} 
} I'll push it so that Mikael can fall over the 1 in 1,000,000 corner case
} again.

Here are some tests:


diff --git a/Test/A02alias.ztst b/Test/A02alias.ztst
index 314ec03..fe7155e 100644
--- a/Test/A02alias.ztst
+++ b/Test/A02alias.ztst
@@ -57,3 +57,27 @@
 >And so is this
 >And this too
 >And aliases are expanded
+
+  $ZTST_testdir/../Src/zsh -fis <<<'
+  PROMPT=""
+  exec 2>&1
+  alias \{=echo
+  { begin
+  {end
+  fc -l -2' 2>/dev/null
+0:Aliasing reserved tokens
+>begin
+>zsh: command not found: echoend
+*>*4*{ begin
+*>*5*{end
+
+  $ZTST_testdir/../Src/zsh -fis <<<'
+  PROMPT=""
+  exec 2>&1
+  alias -g S=\"
+  echo S a string S "
+  fc -l -1' 2>/dev/null
+0:Global aliasing quotes
+> a string S 
+*>*4*echo S a string S "
+# Note there is a trailing space on the "> a string S " line



Messages sorted by: Reverse Date, Date, Thread, Author