Subject: Re: tcsh if works for user, not for root
To: Jeremy C. Reed <>
From: Manuel Bouyer <>
List: netbsd-users
Date: 09/12/2002 21:46:03
On Wed, Sep 11, 2002 at 11:29:55PM -0700, Jeremy C. Reed wrote:
> On Wed, 11 Sep 2002, Sam Carleton wrote:
> > if( -fx /usr/pkg/bin/vim ) then
> Under csh(1), you only use one operand like "-x".
> tcsh(1) allows these operators to be combined.
> > I have added it to root's .cshrc.  When I use su to become root with
> > this commend "sudo su - root -c tcsh", I get this error:
> So I can only guess that this makes it run csh instead of tcsh. Try to do
> it without sudo.

su -c will alway use the user's shell handle the -c. So you can't avoid
running csh if csh is root's shell.

Manuel Bouyer <>