Bash · 336 bytes Raw Blame History
1 #!/bin/bash
2
3 echo "Debug history test..."
4
5 # Start shell and run commands with a small delay to see if history accumulates
6 {
7 echo "echo first command"
8 sleep 0.1
9 echo "echo second command"
10 sleep 0.1
11 echo "echo third command"
12 sleep 0.1
13 echo "history"
14 sleep 0.1
15 echo "exit"
16 } | ./bin/fortsh
17
18 echo "Debug test completed."