Time for an 2014 update…

This commit is contained in:
Ingy döt Net 2014-01-17 05:32:22 +00:00
parent 372c577f83
commit 09687c4926
2520 changed files with 34227 additions and 7318 deletions

View file

@ -1,2 +1,19 @@
TRAPINT(){ print $n; exit }
for (( n = 0; ; n++)) sleep 1
#!/bin/bash
trap 'echo "Run for $((s/2)) seconds"; exit' 2
s=1
half_sec_sleep()
{
local save_tty=$(stty -g)
stty -icanon time 5 min 0
read
stty $save_tty
}
while true
do
echo $s
half_sec_sleep
let s++
done

View file

@ -0,0 +1,2 @@
TRAPINT(){ print $n; exit }
for (( n = 0; ; n++)) sleep 1