Is TCSH in linux weak?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Is TCSH in linux weak?
# 1  
Old 09-23-2011
Is TCSH in linux weak?

hi,

We are moving our machine from HP to linux.

On HP we had tcsh shell and was working fine for us and we are used to it.

But on linux, we are told tcsh doesnt work properly.

Is this true ...if so should moving to BASH a better option ...

Any comment or suggestion is appreciated
# 2  
Old 09-23-2011
I'm not a tcsh expert but I don't think so.
It doesn't matter what OS you are using , tcsh is just another shell regardless the OS.
Implementation of tcsh may differ slightly between OSes and platforms, But it doesn't affect the core functionality
Also keep in mind that tsch is an enhanced version of C shell.
This User Gave Thanks to h@foorsa.biz For This Post:
# 3  
Old 09-23-2011
Code:
.if so should moving to BASH a better option ...

If this is an option just move to Bash. Csh Programming Considered Harmful.
This User Gave Thanks to yazu For This Post:
# 4  
Old 09-23-2011
tcsh is tcsh. It is the same on Linux as on HP-UX. If you have a significant investment in scripts written for tcsh, then simply continue to use tcsh on Linux.

If you are going to move shells, move to a modern shell such as ksh93 rather than the extremely limited bash shell.
This User Gave Thanks to fpmurphy For This Post:
# 5  
Old 09-23-2011
Just FYI, I am concerned more about the interactive commands not scripts ...
# 6  
Old 09-23-2011
Quote:
Originally Posted by shipra_31
But on linux, we are told tcsh doesnt work properly.
tcsh isn't installed on linux by default. It's optional.

Beyond that, it's not "weak", except in the ways tcsh has always been "weak" -- buggy, unfixably flawed(Bill Joy later confessed he "wasn't very good at programming" when he designed the csh), and a poor programming language in general.
Quote:
Is this true ...if so should moving to BASH a better option ...
Bourne shell in general would be a better option. You don't have to program for BASH, it's possible to make bourne scripts that'll work in many places.

---------- Post updated at 10:05 AM ---------- Previous update was at 10:02 AM ----------

Quote:
Originally Posted by shipra_31
Just FYI, I am concerned more about the interactive commands not scripts ...
What interactive things are you worried about, exactly?

BASH has easy command-editing(left-right arrows and delete do what you expect), a decent command history accessible with up/down/pgup/pgdn keys, tab completion, aliases...

BASH aliases work a little differently than tcsh ones. You can't have parameters in the middle of them. BASH functions are a better replacement if you need that complex kind of arrangement:

Code:
function asdf
{
        echo a $1 b $2 c
}

# This would echo a x b y
asdf x y

This User Gave Thanks to Corona688 For This Post:
# 7  
Old 09-26-2011
By interactive i meant ... history command,aliases (as u mentioned) ... i have faced this issue in tcsh (not sure if its issue with tcsh or some setting which we have) ... i am not able to redirect error use 2> in tcsh ...

My first question was answered " is tcsh different in Linux " and as i understand from the answere given ...tcsh is shell and same everywhere ....

Second part is in HP we are using tcsh ... so if we all are used to using tcsh..is it worth moving to bash ... which i understand is a better shell ...
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

Password sent via reset password email is 'weak' and won't allow me to change my password

I was unable to login and so used the "Forgotten Password' process. I was sent a NEWLY-PROVIDED password and a link through which my password could be changed. The NEWLY-PROVIDED password allowed me to login. Following the provided link I attempted to update my password to one of my own... (1 Reply)
Discussion started by: Rich Marton
1 Replies

2. Solaris

Change from weak ssh host key to strong one

Hi, I got instructions from Security audit team for Solaris-10 server. They mentioned - "The sshd configuration on the host supported weak host keys and allowed password authentication on Solaris server. Enable stronger keys (2048 or 4096 bit)". I am not clear enough, what they mean by weak... (7 Replies)
Discussion started by: solaris_1977
7 Replies

3. Shell Programming and Scripting

Tcsh to sh

Dear all, I have piece of command from tcsh, which I would like to be in my .bashrc file. However, I am comletely blank about the tcsh commandline. if (-e ~/forum/dir/code.sh) then source ~/forum/dir/code.sh endif Any piece of suggestions how to convert it to sh way? Thank you emily (5 Replies)
Discussion started by: emily
5 Replies

4. Shell Programming and Scripting

tcsh help

Does anyone no way my .tcsh_history file is filling up with a bunch of crap?? It is filled with lines like: ! ls eccracrascratcd ! ls mecd /hchoo "cratch2/mecd /sch2/mecd /sh2/mecd /scratchcd /scratch2/mecd /scratcraecd /ls mo "ls" > ! ls eccratch2/mecd /sc/ls"d /scratch2/mecd histecho "ls" o... (2 Replies)
Discussion started by: Bic121
2 Replies

5. OS X (Apple)

Weak Security Ciphers

Hi All * Need some help on testing if a server supports weak ciphers . Here is the command I ran : openssl s_client -connect HOSTNAME:443 -cipher LOW:EXP result : Connected : err num=110 openssl s_client -connect HOSTNAME:8000 -cipher LOW:EXP result : Connected : err... (1 Reply)
Discussion started by: noufel
1 Replies

6. Cybersecurity

Weak Security Ciphers

Hi All * Need some help on testing if a server supports weak ciphers . Here is the command I ran : openssl s_client -connect HOSTNAME:443 -cipher LOW:EXP result : Connected : err num=110 openssl s_client -connect HOSTNAME:8000 -cipher LOW:EXP result : Connected : err... (0 Replies)
Discussion started by: noufel
0 Replies

7. UNIX for Dummies Questions & Answers

tcsh issues

HI, I am having strange issues with my tcsh shell. First, the "ln" command doesnt seem to work properly. I have a file "target" that is pointing to "file1". I cannot access file1 but that shouldnt matter. when I do this, ln -sf file2 target I get permission denied that I cannot access the... (1 Reply)
Discussion started by: sardare
1 Replies

8. IP Networking

my wireless usb adapter connect to net but the signal is very weak

i have wireless usb adapter rtl8187 from micromax company my proplem is the signal is very weak and i cannot open website can i increase the signal ? iwconfig lo no wireless extensions. eth0 no wireless extensions. wmaster0 no wireless extensions. wlan0... (5 Replies)
Discussion started by: rsd220
5 Replies

9. UNIX for Dummies Questions & Answers

help in tcsh

am working in tcsh while writing a script, what is diff between foll two starting line #!/bin/csh #!/bin/csh -f Also can I use the same line for script in tcsh or I have to necessarily use #!/bin/tcsh I guess even #!/bin/sh will also do. Kindly clarify (3 Replies)
Discussion started by: mahendrakamath
3 Replies

10. Shell Programming and Scripting

tcsh

I'm working on OpenOffice Localization; In that I need to work most of in 'tcsh' Since I have almost work till now in 'bash', I want to explore 'tcsh' much more .. An body suggest me a way ? books ? Thanks, :) (1 Reply)
Discussion started by: kartik
1 Replies
Login or Register to Ask a Question