From owner-freebsd-questions@freebsd.org Wed Mar 9 12:19:09 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D0A66AC7544 for ; Wed, 9 Mar 2016 12:19:09 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id BDC7B2F0 for ; Wed, 9 Mar 2016 12:19:09 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: by mailman.ysv.freebsd.org (Postfix) id BD4ECAC7540; Wed, 9 Mar 2016 12:19:09 +0000 (UTC) Delivered-To: questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BCF10AC753F for ; Wed, 9 Mar 2016 12:19:09 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 848172EF for ; Wed, 9 Mar 2016 12:19:09 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-185-40.dynamic.qsc.de [92.195.185.40]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 040A13CF0C; Wed, 9 Mar 2016 13:19:06 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id u29CJ6p6002127; Wed, 9 Mar 2016 13:19:06 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 9 Mar 2016 13:19:06 +0100 From: Polytropon To: Olivier Nicole Cc: questions@freebsd.org Subject: Re: Cshell closing on CTRL-c Message-Id: <20160309131906.eca65270.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2016 12:19:09 -0000 On Wed, 09 Mar 2016 17:30:59 +0700, Olivier Nicole wrote: > Hi, > > I have that very annoying feature lately: /bin/csh will close when I > type CTRL-C. Somehow this sounds familiar! Can you provide what configuration change you made prior to this behaviour? For control characters, check the output of "stty -a". Here is an example where Ctrl+C acts as intended: % stty -a [...] cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = ; eol2 = ; erase = ^H; erase2 = ^H; intr = ^C; kill = ^U; lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T; stop = ^S; susp = ^Z; time = 0; werase = ^W; Where does ^C appear in your output? The shell also exits on "end of input", which is ^D (eof) which can be prevented by "set ignoreeof". > I am not sure how this feature even hapened, it seems it does not affect > all the systems I have. > > Any idea? Changes to /etc/csh.cshrc or ~/.cshrc? Try this: % stty intr ^C kill ^U Source: https://docs.freebsd.org/44doc/usd/04.csh/paper.pdf -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...