Subject: bug#20779: closed (Re: bug#20779: 25.0.50; executable-self-display adds wrong magic line)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 10 Jun 2015 20:26:04 +0000

Your bug report

#20779: 25.0.50; executable-self-display adds wrong magic line

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
20779: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20779
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#20779: 25.0.50; executable-self-display adds wrong magic line
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Wed, 10 Jun 2015 16:25:19 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 25.1

Thanks; fixed.

Subject: 25.0.50; executable-self-display adds wrong magic line
From: Nicolas Richard <[email-masked]>
To: [email-masked]
Date: Tue, 09 Jun 2015 19:32:12 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

The command executable-self-display adds:
    #!/usr/bin/tail +2
as the first line.

This doesn't work with my version of tail:

$ tail --version
tail (GNU coreutils) 8.21

I get:
$ LANG=C /tmp/test
/usr/bin/tail: cannot open '+2' for reading: No such file or directory
==> /tmp/test <==
#!/usr/bin/tail +2
foo bar

For it to work, it would need to be 
    #!/usr/bin/tail -n+2

I have no suggestion to fix this (Is it even worth fixing ?)

Nico.