1 2 3 4 5
#!/bin/sh d="$(dirname "$1")/" cd "$d" t=diff; for x in "$@"; do t=$t" ${x#$d}"; done exec xterm -title "$t" -e with-shell diff -u "$@"