[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[abcde] Bug#179222: abcde has trouble with my EDITOR [patch attached]




Package: abcde
Version: 2.0.3

My EDITOR variable is a little too weird for abcde.

$ echo $EDITOR
/usr/bin/emacs -nw
$

This make [ -x "$EDITOR" ] false.  A better match would be 
[ -x "${EDITOR%%\ *}" ] which strips off any options in the variable.

diff -u attached.

-- 
--------------------------------
Kevin Range
range006@tc.umn.edu

281 Kolthoff: 612-625-6317
--------------------------------



-- Attached file included as plaintext by Listar --

--- abcde	Sun Jan 27 23:44:02 2002
+++ /usr/local/bin/abcde	Fri Jan 31 10:02:35 2003
@@ -721,7 +721,7 @@
 		# user has requested via their $EDITOR environment variable
 		if [ -x "/usr/bin/sensible-editor" ]; then
 			/usr/bin/sensible-editor "$CDDBDATA"
-		elif [ -x "$EDITOR" ]; then
+		elif [ -x "${EDITOR%%\ *}" ]; then
 			# That failed, try to load the preferred editor, starting
 			# with their EDITOR variable
 			$EDITOR "$CDDBDATA"


To unsubscribe: echo unsubscribe | mail abcde-request@whimsica.lly.org