diffy 277 B

1234567891011121314
  1. #!/bin/rc
  2. # diffy [diff-opts] file... - diff file against yesterday's version(s)
  3. rfork e
  4. diffopts=()
  5. while(! ~ $#* 0 && ~ $1 -* && ! ~ $1 --){
  6. diffopts=($diffopts $1)
  7. shift
  8. }
  9. if(~ $1 --)
  10. shift
  11. if(! ~ $#* 1)
  12. diffopts=($diffopts -m)
  13. for(f)
  14. diff $diffopts `{yesterday $f} $f