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


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

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 10 years and 39 days ago.

Previous Next


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