summary refs log tree commit diff
path: root/Test/W01history.ztst
blob: 3a64530c5b750a50c221c35525fe72d1616c02b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Tests for BANG_HIST replacements

%prep

  if [[ -t 0 ]]; then print -u $ZTST_fd History tests write to /dev/tty; fi

%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".