about summary refs log tree commit diff
path: root/Test/W01history.ztst
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2015-03-23 21:18:58 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2015-03-23 21:18:58 -0700
commit13bad92fd85c4e4a3077080606f6ad6217b29bd5 (patch)
treec524d51dae6b4155b297d130d9eb0a17eebccf29 /Test/W01history.ztst
parentf6be7bc19f4db61ddf7ce01e34f878c27eb5cb40 (diff)
downloadzsh-13bad92fd85c4e4a3077080606f6ad6217b29bd5.tar.gz
zsh-13bad92fd85c4e4a3077080606f6ad6217b29bd5.tar.xz
zsh-13bad92fd85c4e4a3077080606f6ad6217b29bd5.zip
34772: add new test suite file for history; fix "read" usage in comptest
Diffstat (limited to 'Test/W01history.ztst')
-rw-r--r--Test/W01history.ztst19
1 files changed, 19 insertions, 0 deletions
diff --git a/Test/W01history.ztst b/Test/W01history.ztst
new file mode 100644
index 000000000..2492c418f
--- /dev/null
+++ b/Test/W01history.ztst
@@ -0,0 +1,19 @@
+# Tests for BANG_HIST replacements
+
+%prep
+
+  [[ -t 0 ]] && print -u $ZTST_fd History tests write to /dev/tty
+
+%test
+
+  $ZTST_testdir/../Src/zsh -fis <<<'
+  echo foo bar
+  echo $(!!) again
+  echo more $( !! )' 2>/dev/null
+0:Regression test for history references in command substitution
+>foo bar
+>foo bar again
+>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".