>Are there similar issues concerning csh/tcsh scripts when it comes to >portability and different versions? Have csh and tcsh also been >standardized like the ksh? I primarly decided for the tcsh as it is >available by default in Solaris and Linux and has easy and convenient >history and completion support. I didn't really expect portability >problems concerning scripts. But then I didn't expect all those issues >concerning different implementations of the ksh either.
I'm using tcsh as my primary shell and have been using it for many, many years. However, I do *not* write scripts in tcsh/csh other than the necessary .login/.tcshrc scripts. The C-shell like shells are extremely unsuitable for scripting; you will easily find some writeups on why such shells should be avoided for scripting. My favourite is the ad-hoc parsing. The "taken" branch of an if-then-else is parsed with a different parser than the "not-taken" branch. That can give rise to "missing endifs" if conditions change. Casper _______________________________________________ opensolaris-discuss mailing list [email protected]
