sdiff calling editor fails

Bug #73337 reported by David Planella
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
diffutils
Fix Released
Unknown
diffutils (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Jaunty by Matthias Andree

Bug Description

This bug was originally submitted on Debian (see lines below), and I can reproduce it on my Edgy system using diff 2.8.1-11ubuntu3.

*********************************************************
From: Jaap Eldering <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: sdiff calling editor fails
Date: Wed, 27 Jul 2005 19:59:16 +0200

Package: diff
Version: 2.8.1-11
Severity: important

when running sdiff in interactive mode (with -o option), it fails in the
end with the message "sdiff: subsidiary program `<editor>' failed" where <editor> is set by the EDITOR environment variable (or ed by default).

This seems to happen independently of the editor used (even /bin/true fails) and also with a version I compiled from GNU sources. The bug is not present in the woody version of sdiff (2.7).

Revision history for this message
David Planella (dpm) wrote :

My EDITOR environment variable is not set, so sdiff tries to use 'ed' (which I've also got installed) and the message I'm getting after running:

  sdiff -o diff.txt diff1.txt diff2.txt

and doing a merge is the following:

  sdiff: subsidiary program `ed' failed

funnily enough, the merge seems to work regardless of the error message.

Changed in diffutils:
status: Unknown → Confirmed
Daniel T Chen (crimsun)
Changed in diffutils:
status: New → Confirmed
Revision history for this message
n1ywb (jeff-laughlin) wrote :

On my system, if I export EDITOR=/usr/bin/vim, sdiff, then edit something, it does indeed launch VIM, however the data which I wanted to edit is not visible inside VIM, and when I save and quit, the output is null. Ditto if I use ed.

I noticed in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=320222 that it's mentioned that the bug is fixed in a more recent version of diffutils. Could we get that version or are we stuck with this broken version until debian upgrades?

Revision history for this message
Matthias Andree (matthias-andree) wrote :

sdiff always aborts after calling an editor,
including /bin/true, on jaunty.

Changed in diffutils:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.