This is so excellent. I was smiling as I read it. Thank you.
My personal favourite "watcher" implementation is this:
while true; do make; sleep 0.5; doneMy personal favourite "watcher" implementation is this:
while true; do make; sleep 0.5; doneOr watch -n 0.5 make does the job too
Not always:
$ echo $LANG
pt_BR.UTF-8
$ watch -n 0.5 false
watch: failed to parse argument: '0.5'
(but "watch -n 0,5 ..." works for me)You can literally write it as a shell script
#!/bin/bash
N=2
while true; do
clear
echo Every $N\s: $*
$*
sleep $N
doneworks well while running on battery :)