1
0

diffy 301 B

12345678910111213141516
  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. if (~ $#* 0)
  14. * = (.)
  15. for(f)
  16. diff $diffopts `{yesterday $f} $f