]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/histexp.right
Bash-4.4 distribution sources and documentation
[thirdparty/bash.git] / tests / histexp.right
index f1c9e9d9adc09af5ed287d94fc5d7d8a883fd81c..ed6e08942e3236b3f8af89450579552de741765f 100644 (file)
@@ -127,3 +127,70 @@ echo '!!' \!\!
 ok 1
 ok 2
 ok 3
+echo shopt a
+shopt a
+echo a b c d 2> /dev/null
+a b c d
+one two three four
+echo two ; echo four  
+one two three four
+echo four ; echo two
+!
+!
+!
+!
+!
+!
+!
+!
+!
+\!
+\!
+\!
+\!
+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