Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: cvsvimdiff zshism



Philippe Troin sent me the following 0.8K:

> > So, in order to make cvs diff work with vimdiff, I wrote the following
> > function that exploits zsh's tmp file substitution mechanism.  It's not
> > very robust, 'cuz I don't know all the ways to break it yet.  But here's
> > a start:
> 
> Why not simply:
> 
>   cvsvimdiff() {
>      if [[ $# -ne 2 ]] then
>         print Usage: $0 old_version file >& 2
>         return 1
>      fi
> 
>      vimdiff $2 =(cvs -Q up -r $1 -p $2)
>   }

I like it.  Thanks!  I didn't know of the -p option.

-- 
Chris Johnson
cjohnson@xxxxxxxxxx
http://www.cs.utk.edu/~cjohnson



Messages sorted by: Reverse Date, Date, Thread, Author