Date: Wed, 24 Nov 1999 17:09:07 +0000 From: Ben Smithurst <ben@scientia.demon.co.uk> To: Peng HaiJie <phj@cn.FreeBSD.org> Cc: freebsd-questions@freebsd.org Subject: Re: Is a feature or a bug of nvi? Message-ID: <19991124170907.B926@strontium.scientia.demon.co.uk> In-Reply-To: <199911241204.MAA98904@cn.FreeBSD.org> References: <199911241204.MAA98904@cn.FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Peng HaiJie wrote: > /usr/bin/nvi will > :^\Quit - core-dumped > when I am in ex mode and press ^\ or ^$ in my home directory, > but it won't core-dumped if I am not in home directory(such as in /). > Is it a feature or a bug of nvi? Well, it's nothing to do with nvi. If you aren't in a directory you have write permission for, the kernel can't write a core file for you. Try it in /tmp, you should find it can dump core there. Try writing a simple program which just calls abort() - you will see it exhibits the same behaviour. === begin code #include <stdlib.h> int main(void) { abort(); exit(EXIT_FAILURE); } === end code ben@strontium:~/tmp$ ./a.out zsh: abort (core dumped) ./a.out ben@strontium:~/tmp$ cd / ben@strontium:/$ ~/tmp/a.out zsh: abort /home/ben/tmp/a.out -- Ben Smithurst | PGP: 0x99392F7D ben@scientia.demon.co.uk | key available from keyservers and | ben+pgp@scientia.demon.co.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991124170907.B926>