#!/bin/sh # Get a hold of the last parameter. eval LAST=\${$#} # Now run opendiff with the previous version and the current version. opendiff ${*} -merge "$LAST"