Operating System - HP-UX
1751960 Members
4582 Online
108783 Solutions
New Discussion юеВ

Re: Is HPUX has tcsh shell?

 
GaneshrajS
Advisor

Re: Is HPUX has tcsh shell?

Thanks for all your replies. This is really helping us. :)
Laurent Menase
Honored Contributor

Re: Is HPUX has tcsh shell?

If you like csh more than sh syntax
and if you want some of the advantages you have on ksh/posix shell, then tcsh is for you.

the other thing interesting is that you can use arrow keys to move in the history.

But really isn't worse a ksh or bash... :)
Peter Nikitka
Honored Contributor

Re: Is HPUX has tcsh shell?

Hi,

looking for dis/advantages, there are two paths to compare with:
1) csh -> tcsh
2) Bourne-like shells -> tcsh

Regarding 2) there may be some kind of ideologie ...

regarding 1)
Countless, but check for incompatiblities to csh in the tcsh-docs. Some +++:
- cmdline editing (+ navigations as already told)
- history mechanism permanent
- variable modifiers usable for env-vars as well
- variable modifiers stackable (like ${var:t:r:s:_:.:})
- arguments for 'source'
- much lesser restrictions and better consistency in variable namelength
- no limitation of the length of 'switch-case' statement
- more robust because much lesser use of fixed length buffers internally

So when you're looking from a C-Shell point of view: use TCSH as soon as you can ...

Generally, in scripting I use both.

mfG Peter

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"