On Tue, 05 Aug 2014 at 08:45:32 +0200, Helmut Grohne wrote: > What I am getting out of that command for mips occasionally is "`ed" > (without the double quotes but including the back-quote).
I can't help thinking that rather than parsing the binary, it would be simpler to check that EDITOR_PROGRAM is defined the way you want it: --- patch-2.7.1/debian/rules 2013-11-04 12:43:02.000000000 +0000 +++ patch/debian/rules 2014-08-06 09:28:56.798604137 +0100 @@ -37,8 +37,8 @@ dh_testdir $(MAKE) dh_auto_test - # make sure we call ed as "ed" - [ "$$(strings -n 2 src/patch | grep -w 'ed$$')" = "ed" ] + # make sure we call ed as "ed", not "/bin/ed" or something + grep '#define *EDITOR_PROGRAM *"ed"' config.h touch build-stamp clean: Regards, S -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org