#!/bin/sh # vip -- vi on the $PATH die() { echo "$1" 1>&2; exit 1 } if [ -z "$1" ]; then die "usage: vip progname" fi bin=`which $1` if [ -z $bin ]; then die "$1 not on PATH" fi exec $EDITOR $bin