#! /bin/sh # Run GNU ed with `-G' (backward compatibility option), or traditional ed # with no additional options. # $Id: ed,v 1.3 2004/04/27 21:16:33 friedman Exp $ ed=`run-next -p $0` # If this is gnu ed, it will still only print the version number. # If this is not gnu ed, it will complain about the -G param. if $ed -G --version > /dev/null 2>&1; then exec $ed -G ${1+"$@"} else exec $ed ${1+"$@"} fi # eof