ref: 2d105c2d327a7609f79d6dc75d8e8d5b4868adc2
dir: /rc/bin/diffy/
#!/bin/rc
# diffy [diff-opts] file... - diff file against yesterday's version(s)
rfork e
diffopts=()
while(! ~ $#* 0 && ~ $1 -* && ! ~ $1 --){
diffopts=($diffopts $1)
shift
}
if(~ $1 --)
shift
if(! ~ $#* 1)
diffopts=($diffopts -m)
for(f)
diff $diffopts `{yesterday $f} $f