GNU bug report logs - #20779
25.0.50; executable-self-display adds wrong magic line

Previous Next

Package: emacs;

Reported by: Nicolas Richard <youngfrog <at> members.fsf.org>

Date: Tue, 9 Jun 2015 17:33:02 UTC

Severity: minor

Found in version 25.0.50

Fixed in version 25.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Nicolas Richard <youngfrog <at> members.fsf.org>
Subject: bug#20779: closed (Re: bug#20779: 25.0.50; executable-self-display
 adds wrong magic line)
Date: Wed, 10 Jun 2015 20:26:04 +0000
[Message part 1 (text/plain, inline)]
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 20779 <at> debbugs.gnu.org.

-- 
20779: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20779
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 20779-done <at> debbugs.gnu.org
Subject: Re: bug#20779: 25.0.50; executable-self-display adds wrong magic line
Date: Wed, 10 Jun 2015 16:25:19 -0400
Version: 25.1

Thanks; fixed.

[Message part 3 (message/rfc822, inline)]
From: Nicolas Richard <youngfrog <at> members.fsf.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50; executable-self-display adds wrong magic line
Date: Tue, 09 Jun 2015 19:32:12 +0200
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.



This bug report was last modified 9 years and 353 days ago.

Previous Next


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