Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jul 2001 11:39:22 +0200
From:      Walter Spierings <Walter@holoprint.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   TCSHl question in FreeBSD 4.1 and up?
Message-ID:  <5.0.2.1.2.20010725111202.00a412d0@pop.iae.nl>

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

<html>
Dear sirs,<br>
We always have used TCSH,<br>
<br>
After installing FreeBSD 4.1 which by default replaces CSH by TCSH.<br>
<br>
When I'm root I have a script (/etc/csh.cshrc) problem.<br>
<br>
The script:<br>
<br>
<i>#<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>$Id:
csh.cshrc,v 1.2 1998/09/02 01:34:55 brian Exp $<br>
#<br>
# System-wide .cshrc file for csh(1).<br>
#<br>
# Door Zeo Smeijsters 06-07-2000<br>
<br>
setenv FFEDITOR nedit<br>
setenv BLENDERDIR 
/usr/local/bin/blender2.00-freebsd-3.4-i386-static<br>
set path = ($path /usr/local/bin)<br>
set savehist = (100 merge)<br>
set prompt = &quot;$USER@`hostname -s`% &quot;<br>
<br>
<br>
if ($shell == &quot;/usr/local/bin/tcsh&quot;) then<br>
&nbsp; if ($?TERM) then<br>
&nbsp;&nbsp;&nbsp; if ($TERM == &quot;xterm&quot;) then<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>alias
cwdcmd 'echo -n &quot;]2;${USER}@${HOST}:$cwd &quot;'<br>
&nbsp;&nbsp;&nbsp; endif<br>
&nbsp; if ($TERM == &quot;xterm-color&quot;) then<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>alias
cwdcmd 'echo -n &quot;]2;${USER}@${HOST}:$cwd &quot;'<br>
&nbsp; endif<br>
endif<br>
<br>
<br>
cd .<br>
<br>
</i><font face="Courier New, Courier">The message after a login as
root:<br>
<br>
</font><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><b>then:then/endif
not found.<br>
<br>
</b>Now the script doesn't work, I think root is NOT using tcsh.<br>
because I also can't use the arrows to browse through the history of
commands.<br>
<br>
I tried to solve this by using:<br>
<br>
<b>chpass -s tcsh root<br>
<br>
</b>As I always did this with &lt; 4.0 systems, when I got this
problem.<br>
<br>
The /etc/passwd file, says root is using /bin/tcsh. ???????<br>
<br>
Thanx, Zeo Smeijsters..</html>
--=====================_2397877==_.ALT--


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?5.0.2.1.2.20010725111202.00a412d0>