3# From http://unix.stackexchange.com/questions/43340/how-to-introduce-timeout-for-shell-scripting
4# Here copied from reg039.
6# Executes command with a timeout
10# Returns 1 if timed out 0 otherwise
15 # start the command in a subshell to avoid problem with pipes
16 # (spawn accepts one command)
17 command="/bin/sh -c \"$2\""
19 expect -c "set echo \"-noecho\"; set timeout $time; spawn -noecho $command; expect timeout { exit 1 } eof { exit 0 }"
22 echo "Timeout after ${time} seconds"
30 extraargs=("${extraargs[@]}" "'$arg'")
33timeout 10 "idris ${extraargs[*]} Main.idr --nocolour --check --warnreach -o basic010"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list