From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8692 invoked from network); 17 Jul 2006 01:58:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 17 Jul 2006 01:58:53 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 86179 invoked from network); 17 Jul 2006 01:58:44 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 Jul 2006 01:58:44 -0000 Received: (qmail 7717 invoked by alias); 17 Jul 2006 01:58:37 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10523 Received: (qmail 7707 invoked from network); 17 Jul 2006 01:58:37 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 17 Jul 2006 01:58:37 -0000 Received: (qmail 85138 invoked from network); 17 Jul 2006 01:58:37 -0000 Received: from vinc17.net8.nerim.net (HELO prunille.vinc17.org) (62.212.121.106) by a.mx.sunsite.dk with SMTP; 17 Jul 2006 01:58:36 -0000 Received: by prunille.vinc17.org (Postfix, from userid 501) id D29A0A5161D; Mon, 17 Jul 2006 03:58:32 +0200 (CEST) Date: Mon, 17 Jul 2006 03:58:32 +0200 From: Vincent Lefevre To: zsh-users@sunsite.dk Subject: Re: I get tcsh at login; want zsh Message-ID: <20060717015832.GQ26495@prunille.vinc17.org> Mail-Followup-To: zsh-users@sunsite.dk References: <20060716232837.GA8923@panix.com> <237967ef0607161709t21c61aafr2dfbf6f447d8ce5a@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <237967ef0607161709t21c61aafr2dfbf6f447d8ce5a@mail.gmail.com> X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.12-vl-r13064-2006-07-14 --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit On 2006-07-17 02:09:51 +0200, Mikael Magnusson wrote: > On 7/17/06, Russell Hoover wrote: [...] > >What do I need to do to be able to log directly into and directly out > >of zsh? > > Check what startup files are used by tcsh and put 'exec zsh' in it. Some care must be taken. At the end of your .cshrc: if ($?prompt && ! $?TCSH) then if ("$prompt" != "" && -X zsh) then setenv SHELL `which \zsh` if ($?loginsh) set SHELL = "$SHELL -l" exec shexec $SHELL endif endif where shexec is the attached Perl script. The tcsh exec bug has been fixed in recent versions of tcsh; so, you may not necessarily need shexec. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / SPACES project at LORIA --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=shexec #!/usr/bin/env perl # Workaround for the tcsh exec bug. Example: # tcsh> exec shexec zsh use strict; eval { require POSIX; foreach (3..63) { POSIX::close $_ if -t $_ } 1; } or warn <<"EOF"; Perl POSIX module not found! The non-standard file descriptors attached to a tty (as those let open by this buggy tcsh) could not be closed. EOF exec @ARGV; # $Id: shexec 11281 2006-02-27 13:24:27Z lefevre $ --5mCyUwZo2JvN/JJP--