Subject: bug#15032: /bin/sh and other binaries vs. M-x compile

From: [email-masked]
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