[Pkg-octave-devel] Bug#290470: octave2.1: Octave's bug_report needs emacs or $EDITOR

Rafael Laboissiere Rafael Laboissiere <rafael@debian.org>, 290470@bugs.debian.org
Tue, 1 Mar 2005 17:59:36 +0100


* John W. Eaton <jwe@bevo.che.wisc.edu> [2005-01-18 22:20]:

> OK, I just checked the bashbug script (which I used as the starting
> point for octave-bug way back when) and it now uses
> 
>   if [ -z "$DEFEDITOR" ] && [ -z "$EDITOR" ]; then
> 	  if [ -x /usr/bin/editor ]; then
> 		  DEFEDITOR=editor
> 	  elif [ -x /usr/local/bin/ce ]; then
> 		  DEFEDITOR=ce
> 	  elif [ -x /usr/local/bin/emacs ]; then
> 		  DEFEDITOR=emacs
> 	  elif [ -x /usr/contrib/bin/emacs ]; then
> 		  DEFEDITOR=emacs
> 	  elif [ -x /usr/bin/emacs ]; then
> 		  DEFEDITOR=emacs
> 	  elif [ -x /usr/bin/xemacs ]; then
> 		  DEFEDITOR=xemacs
> 	  elif [ -x /usr/contrib/bin/jove ]; then
> 		  DEFEDITOR=jove
> 	  elif [ -x /usr/local/bin/jove ]; then
> 		  DEFEDITOR=jove
> 	  elif [ -x /usr/bin/vi ]; then
> 		  DEFEDITOR=vi
> 	  else
> 		  echo "$0: No default editor found: attempting to use vi" >&2
> 		  DEFEDITOR=vi
> 	  fi
>   fi
> 
>   : ${EDITOR=$DEFEDITOR}
> 
> so I'll copy this method.

This fixes appears already in 2.1.66, which is now in unstable.  I will soon
close this bug report, unless the submitter objects.
 
-- 
Rafael