From owner-freebsd-questions@freebsd.org Thu Mar 10 06:27:48 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 8B05AACA416 for ; Thu, 10 Mar 2016 06:27:48 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) 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 6F5C3156D for ; Thu, 10 Mar 2016 06:27:48 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: by mailman.ysv.freebsd.org (Postfix) id 6B5EEACA415; Thu, 10 Mar 2016 06:27:48 +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 51C61ACA414 for ; Thu, 10 Mar 2016 06:27:48 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0616D156B for ; Thu, 10 Mar 2016 06:27:47 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id D58B1D7882 for ; Thu, 10 Mar 2016 13:27:45 +0700 (ICT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= content-type:content-type:mime-version:message-id:date:date :in-reply-to:subject:subject:from:from:received:received :received; s=selector1; t=1457591264; x=1459405665; bh=EUiCcpXS/ eXUQRUm82ni79dpAmbXz2Zrh/Kqt5sJLgI=; b=m073il0kGLPJWZMjZfSw0e1om 3RaqlPb1rCOiDxKmD7l2eWHGrURe0IMVESgYxiGvQo9jAVxALhF1R30fpiCJxlXq FlxczLdxp4jcSGxvZyW/fOlmnSmEkBFl8uDTiUC+coO5omS6kvJhHA1mdv6d4Ckm zsHe24995sJR5v1S98= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by mail.cs.ait.ac.th (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id tNr752YZM2rO for ; Thu, 10 Mar 2016 13:27:44 +0700 (ICT) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id 9E787D7881 for ; Thu, 10 Mar 2016 13:27:44 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.15.2/8.15.2/Submit) id u2A6RiqA062433; Thu, 10 Mar 2016 13:27:44 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) From: Olivier Nicole To: questions@freebsd.org Subject: Re: Cshell closing on CTRL-c In-Reply-To: <20160309131906.eca65270.freebsd@edvax.de> (message from Polytropon on Wed, 9 Mar 2016 13:19:06 +0100) Date: Thu, 10 Mar 2016 13:27:44 +0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain 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: Thu, 10 Mar 2016 06:27:48 -0000 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? % 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; > 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? No, the only change is from FreeBSD 10.1 to 10.2. But now I have something even more puzzling: banyan41: csh -f % CTRL-C % CTRL-C % CTRL-C % echo oo bar oo bar % CTRL-C % CTRL-C % CTRL-C % uname -a FreeBSD banyan.cs.ait.ac.th 10.2-RELEASE-p12 FreeBSD 10.2-RELEASE-p12 #2 r295233: Thu Feb 18 13:42:07 ICT 2016 root@banyan.cs.ait.ac.th:/usr/obj/usr/src/sys/CSIM amd64 % CTRL-C banyan42: I start a csheel with no environment, no startscript. CTRL-C does nothing until I execute the 1st command. Then it terminates the shell. Whatever the command be (if it is not a shell internal command). I had the same behavious on xterm and on console and on any 64bits system. 32 bits are immune. I think I may have to report that as a bug. What do you think? Bestregards, Olivier