Index: ossp-pkg/due/.due/due.editor.sh RCS File: /v/ossp/cvs/ossp-pkg/due/.due/due.editor.sh,v rcsdiff -q -kk '-r1.2' '-r1.3' -u '/v/ossp/cvs/ossp-pkg/due/.due/due.editor.sh,v' 2>/dev/null --- due.editor.sh 2004/10/22 19:32:52 1.2 +++ due.editor.sh 2004/10/22 21:17:44 1.3 @@ -32,19 +32,14 @@ # determine best editor export EDITOR -set -x EDITOR=`find_tool vim vi` if [ ".$EDITOR" = .vim ]; then alias vi=vim alias pi='vim "+set patchmode=.orig"' fi if [ ".$TERM" != ".$TERM_COLOR" ]; then - case "$EDITOR" in - /* ) ;; - * ) eval "function $EDITOR () { TERM=\$TERM_COLOR command $EDITOR \${1+\"\$@\" }" ;; - esac + eval "function $EDITOR () { TERM=\$TERM_COLOR command $EDITOR \${1+\"\$@\"}; }" fi -set +x # determine best pager export PAGER Index: ossp-pkg/due/.due/due.util.sh RCS File: /v/ossp/cvs/ossp-pkg/due/.due/due.util.sh,v rcsdiff -q -kk '-r1.2' '-r1.3' -u '/v/ossp/cvs/ossp-pkg/due/.due/due.util.sh,v' 2>/dev/null --- due.util.sh 2004/10/22 19:32:52 1.2 +++ due.util.sh 2004/10/22 21:17:44 1.3 @@ -118,8 +118,8 @@ local tool="" local name for name in "$@"; do - tool=`type -p $name` - if [ -n $tool ]; then + if [ ".`type -p $name`" != . ]; then + tool="$name" break fi done