7 extraargs=("${extraargs[@]}" "'$arg'")
9if (which timeout&>/dev/null); then
10 timeout 60 idris $@ --nocolour reg039.idr --exec go
12 # From http://unix.stackexchange.com/questions/43340/how-to-introduce-timeout-for-shell-scripting
13 # Executes command with a timeout
15 # $1 timeout in seconds
17 # Returns 1 if timed out 0 otherwise
22 # start the command in a subshell to avoid problem with pipes
23 # (spawn accepts one command)
24 command="/bin/sh -c \"$2\""
26 expect -c "set echo \"-noecho\"; set timeout $time; spawn -noecho $command; expect timeout { exit 1 } eof { exit 0 }"
29 echo "Timeout after ${time} seconds"
33 timeout 60 "idris ${extraargs[*]} --nocolour reg039.idr --exec go"
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