LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-20-2005, 07:58 AM   #1
grizos
LQ Newbie
 
Registered: May 2005
Location: Thessaloniki, Greece
Distribution: Debian
Posts: 6

Rep: Reputation: 0
I use tcsh and I have bash ??????


#echo $SHELL
/usr/bin/tcsh

#source .cshrc

bash: alias: fping: not found
bash: alias: ping -c 1 -t 1 \!* | grep icmp_seq: not found
bash: alias: duh: not found
bash: alias: du -sch: not found
bash: .cshrc: line 13: syntax error near unexpected token `('
bash: .cshrc: line 13: `set path = (/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin /usr/X11R6/bin)'

how can this happen?
 
Old 11-20-2005, 09:47 AM   #2
nukkel
Member
 
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
Check /etc/passwd, see if your default shell is set to /bin/bash or to /usr/bin/tcsh.

Also, check .cshrc, if it starts with a line like "#!/bin/bash" or "#!/bin/sh" it might be executed by sh or bash instead of tcsh.
 
Old 11-21-2005, 09:50 PM   #3
ahedler
Member
 
Registered: Oct 2005
Location: A safe distance from Detroit
Distribution: SuSE 10.0, Knoppix
Posts: 99

Rep: Reputation: 17
Since bash is reporting the errors, it looks likely that either your shell is set to bash, or the .cshrc has /bin/bash specified up top, as nukkel mentioned. If it has nothing specified, you should make the first line say "#!/usr/bin/tcsh" to ensure that the proper shell processes it.

If your shell (as specified in /etc/passwd) is not set to /usr/bin/tcsh, however, your .cshrc will never get read, except perhaps when you invoke the tcsh shell manually or source the file as you did above.

-Alan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash vs tcsh versioning ? puishor Programming 7 08-29-2005 09:29 PM
shell confusion..what is diff between bash, ksh, csh, tcsh..?? servnov Linux - Newbie 7 11-18-2004 08:28 PM
bash equivalence of tcsh "alias em "emacs \!:1 &""? rgiggs Slackware 3 07-29-2004 02:07 AM
TCSH vs. BASH Imyrryr Linux - General 3 09-13-2003 03:33 PM
bash or tcsh infected Linux - General 2 06-17-2003 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration