Bash-4.3 distribution sources and documentation
[platform/upstream/bash.git] / tests / history.tests
index 4a218c3..25d7834 100644 (file)
@@ -8,6 +8,8 @@ history -r -w /dev/null
 # bad option
 fc -v
 
+unset HISTFILESIZE
+
 # all of these should result in an empty history list
 history -c
 history -r /dev/null
@@ -70,7 +72,6 @@ unset HISTFILE
 fc -l 4
 fc -l 4 8
 
-fc -l 502
 fc -l one=two three=four 502
 
 history 4
@@ -91,7 +92,23 @@ r cc
 unalias -a
 alias
 
+# these two blocks had better both result in the same output
+echo aa
+echo bb
+echo cc
+fc -e cat
+
+echo aa
+echo bb
+echo cc
+fc -e cat -1
+
 set +o history
 
 shopt -q -o history
 echo $?
+
+${THIS_SH} ./history1.sub
+rm foohist-*
+
+${THIS_SH} ./history2.sub