GNU bug report logs - #15032
/bin/sh and other binaries vs. M-x compile

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Tue, 6 Aug 2013 02:03:02 UTC

Severity: wishlist

Tags: fixed, patch

Merged with 10239, 16218, 25329, 28035, 32968, 35745

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: bug-gnu-emacs <at> gnu.org
Subject: /bin/sh and other binaries vs. M-x compile
Date: Tue, 06 Aug 2013 09:07:47 +0800
Please try the following experiment.
$ echo 'a:; test -gt 3' > Makefile
$ emacs
now set compilation-auto-jump-to-first-error to t
now do M-x compile and hit RET

does something blow up in your face and you get a buffer fill of binary
junk as emacs tries to edit an ELF file etc. etc.?

No I don't know how emacs should guard against it.

You will see

   /bin/sh: line 0: test: -gt: unary operator expected
   make: *** [a] Error 2

   Compilation exited abnormally with code 2 at Tue Aug  6 09:00:49

and in the other window there low and behold emacs has opened /bin/sh
for one's viewing pleasure.

Even without compilation-auto-jump-to-first-error t, one little hit of
C-x ` will get the same result.

Package: emacs-snapshot
Version: 2:20130724-1





This bug report was last modified 5 years and 221 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.