nano failing to start while editing certain files (probably only with empty ones) It shuts down with "Received SIGHUP or SIGTERM" Reproducible: Always Steps to Reproduce: 1. touch abcd 2. nano abcd 4. notice immediate nano close with "Received SIGHUP or SIGTERM" all versions, through 2.4.3-2.5.3 exhibit such behavior. oleg@oleg ~ $ stat abcd File: 'abcd' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 803h/2051d Inode: 269824560 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 1000/ oleg) Gid: ( 1000/ oleg) Access: 2016-04-27 15:45:57.544327294 +0300 Modify: 2016-04-27 15:45:57.544327294 +0300 Change: 2016-04-27 15:45:57.544327294 +0300 Birth: - oleg@oleg ~ $
Created attachment 432260 [details] emerge --info
Please post your `emerge -vpq app-editors/nano` output in a comment.
oleg2 / # emerge -vpq app-editors/nano [ebuild R ] app-editors/nano-2.5.3 USE="magic ncurses nls spell unicode -debug -justify -minimal -slang -static" * IMPORTANT: 9 news items need reading for repository 'gentoo'. * Use eselect news read to view new items. oleg2 / #
Created attachment 432270 [details] strace
nano, compiled with USE=-magic, able to open this empty file. (i tried all, 2.4.3-9999). Adding magic USE back makes the problem return.
what version of file are you using ? make sure you're using not still on file-5.26.
apparently, i'm still on 5.26. Should be 5.26-r1?
update to file-5.26-r1 fixed nano[magic]. Sorry about the noise. Can be closed.