From owner-freebsd-questions Tue Jul 24 2:35:40 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.iae.nl (mail.iae.nl [212.61.26.54]) by hub.freebsd.org (Postfix) with ESMTP id 86FAC37B406 for ; Tue, 24 Jul 2001 02:35:28 -0700 (PDT) (envelope-from Walter@holoprint.com) Received: from hamburg.holoprint.com (pm17d172.iae.nl [212.61.3.172]) by mail.iae.nl (Postfix) with ESMTP id A2C6720F57 for ; Tue, 24 Jul 2001 11:35:25 +0200 (CEST) Message-Id: <5.0.2.1.2.20010725111202.00a412d0@pop.iae.nl> X-Sender: walter@pop.iae.nl X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Wed, 25 Jul 2001 11:39:22 +0200 To: freebsd-questions@FreeBSD.ORG From: Walter Spierings Subject: TCSHl question in FreeBSD 4.1 and up? Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====================_2397877==_.ALT" 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 --=====================_2397877==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed 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 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.. --=====================_2397877==_.ALT Content-Type: text/html; charset="us-ascii" 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
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.. --=====================_2397877==_.ALT-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message