summaryrefslogtreecommitdiff
path: root/tests/histexp.right
diff options
context:
space:
mode:
Diffstat (limited to 'tests/histexp.right')
-rw-r--r--tests/histexp.right46
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/histexp.right b/tests/histexp.right
index 425a8eae..c929e585 100644
--- a/tests/histexp.right
+++ b/tests/histexp.right
@@ -143,3 +143,49 @@ echo a b c d 2 > /dev/null
\!
\!
\!
+a
+b
+c
+echo "#!/bin/bash" set -o posix
+#!/bin/bash set -o posix
+!!
+!!
+a
+echo $(echo echo a)
+echo a
+a
+echo echo a $(echo echo a)
+echo a echo a
+b
+!! $(echo !!)
+c
+echo "echo c" "$(echo echo c)"
+echo c echo c
+d
+echo "echo d" $(echo "echo d")
+echo d echo d
+e
+!! !!
+f
+!!
+f
+!!
+g
+echo "echo g"
+echo g
+g
+eval echo "echo g"
+echo g
+a
+cat < <(echo echo a)
+echo a
+b
+echo echo b `echo echo b`
+echo b echo b
+c
+!
+d
+!
+e
+! !
+./histexp4.sub: line 20: !': event not found