about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2015-03-25 17:33:35 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2015-03-25 17:33:35 -0700
commit784a9f786d8c93095b6254a2d7a6d44c72f7f95f (patch)
tree31be679b21315fd2e9086d7f9318dd8a25731b3e /Test
parentddf96cf933a67913d64b9cfe196c870481452539 (diff)
downloadzsh-784a9f786d8c93095b6254a2d7a6d44c72f7f95f.tar.gz
zsh-784a9f786d8c93095b6254a2d7a6d44c72f7f95f.tar.xz
zsh-784a9f786d8c93095b6254a2d7a6d44c72f7f95f.zip
34779: tests for 34776
Diffstat (limited to 'Test')
-rw-r--r--Test/A02alias.ztst24
-rw-r--r--Test/W01history.ztst2
2 files changed, 25 insertions, 1 deletions
diff --git a/Test/A02alias.ztst b/Test/A02alias.ztst
index 314ec036a..fe7155e0b 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
diff --git a/Test/W01history.ztst b/Test/W01history.ztst
index 3a64530c5..cfc248c15 100644
--- a/Test/W01history.ztst
+++ b/Test/W01history.ztst
@@ -16,4 +16,4 @@
 >more foo bar again
 *?*
 F:Check that a history bug introduced by workers/34160 is working again.
-F:Discarded line of error output consumes prompts printed by "zsh -i".
+# Discarded line of error output consumes prompts printed by "zsh -i".