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