From owner-freebsd-questions Tue Jul 24 6:22:30 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gekko.i-clue.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id 2D92037B406 for ; Tue, 24 Jul 2001 06:22:26 -0700 (PDT) (envelope-from so@server.i-clue.de) Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.i-clue.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id PAA29256; Tue, 24 Jul 2001 15:30:26 +0200 Message-ID: <3B5D771F.6C1608BD@i-clue.de> Date: Tue, 24 Jul 2001 15:24:47 +0200 From: Christoph Sold Reply-To: so@server.i-clue.de X-Mailer: Mozilla 4.78 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Walter Spierings Cc: freebsd-questions@FreeBSD.ORG Subject: Re: TCSHl question in FreeBSD 4.1 and up? References: <5.0.2.1.2.20010725111202.00a412d0@pop.iae.nl> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG It's not a shell or FreeBSD problem, but a faulty script. See below. HTH -Christoph Sold Walter Spierings wrote: > > Dear sirs, > We always have used TCSH, > > After installing FreeBSD 4.1 which by default replaces CSH by TCSH. > > When I'm root I have a script (/etc/csh.cshrc) problem. > > The script: > > # $Id: csh.cshrc,v 1.2 1998/09/02 01:34:55 brian Exp $ > # > # System-wide .cshrc file for csh(1). > # > # Door Zeo Smeijsters 06-07-2000 > > setenv FFEDITOR nedit > setenv BLENDERDIR /usr/local/bin/blender2.00-freebsd-3.4-i386-static > set path = ($path /usr/local/bin) > set savehist = (100 merge) > set prompt = "$USER@`hostname -s`% " > > if ($shell == "/usr/local/bin/tcsh") then > if ($?TERM) then > if ($TERM == "xterm") then > alias cwdcmd 'echo -n "]2;${USER}@${HOST}:$cwd "' > endif > if ($TERM == "xterm-color") then > alias cwdcmd 'echo -n "]2;${USER}@${HOST}:$cwd "' endif ^^^^^ is missing. > endif > endif > > cd . > > The message after a login as root: > > then:then/endif not found. > > Now the script doesn't work, I think root is NOT using tcsh. > because I also can't use the arrows to browse through the history of > commands. > > I tried to solve this by using: > > chpass -s tcsh root > > As I always did this with < 4.0 systems, when I got this problem. > > The /etc/passwd file, says root is using /bin/tcsh. ??????? > > Thanx, Zeo Smeijsters.. -- Freundliche Grüße aus Waiblingen Christoph Sold -- Systemadministrator, i-clue GmbH, Endersbacher Str. 57, 71334 Waiblingen Fon: (0 71 51) 9 59 01-12, Fax: (0 71 51) 9 59 01-55, Mail: so@i-clue.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message