Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jul 2001 15:24:47 +0200
From:      Christoph Sold <so@server.i-clue.de>
To:        Walter Spierings <Walter@holoprint.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: TCSHl question in FreeBSD 4.1 and up?
Message-ID:  <3B5D771F.6C1608BD@i-clue.de>
References:  <5.0.2.1.2.20010725111202.00a412d0@pop.iae.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B5D771F.6C1608BD>