Point him at http://language.perl.com/versus/csh.whynot (after readingQuote:>>>>> "nospam" == nospam <Rob> writes:
> I know Bourne shell programming pretty well, but my boss asked me to
> write my scripts in tcsh cause that's what people use at my
> company. When I looked for tutorials though, they all warned heavily
> against using tcsh for programming, but I could not understand
> why. Anyone want to shed some light on this for me? What should I
> tell my boss ?
Sr. R&D Engineer
My first scripts were written for tcsh, but I've abandonedQuote:> I know Bourne shell programming pretty well, but my boss asked me to write
> scripts in tcsh cause that's what people use at my company. When I looked
> tutorials though, they all warned heavily against using tcsh for
> but I could not understand why. Anyone want to shed some light on this for
> What should I tell my boss ?
About the only feature of tcsh scripting I missed was 'goto'
and I devised a more maintainable, replacement for bourne
shell. (Yes, I really did need a goto-like functionality,
but using case with a pseudo-program counter is much nicer.)
All that said, I still prefer tcsh as my user shell. If that's
what your boss is getting at, then you can assure him that
just because the users want to interact with tcsh, doesn't
mean the scripts can't be bourne shell. (You will need a tcsh
wrapper to set environment variables in the user's environment,
but that's not hard. Your bourne script could output them to
stdout where tcsh can capture and set them, or have it write
them to a file that tcsh can source.) -Wm
We are using various models of Suns, H-P 9000s, and SGIs under NIS, aka
Yellow Pages). I would like to use Kron Shell as my default login shell
on those computers that have it, but the older Sun OS does not.
My Sys Admin is telling me that this is not possible under NIS, thus I must
use the C Shell since it is the only shell that is supported on all of the
machines. Doing a little reading on the man pages, I think that he is
blowing smoke. He said also that he "needed to occasionally copy the password
file around to the NIS nodes and my having a non-standard default shell would
not allow him to do this" (or words to this effect).
I've tried to use chsh and passmgmt (depending on which UNIX) to
change my default shell on various nodes, but I get "permission
denied" or no message but also no effect.
What man pages can I print out to show this Sys Admin person, in order
to convince him that what I want to do is one of the original intents
of NIS and doesn't mess up his "copying of the passwd file". I just
want to set the Korn Shell as my default shell on our SGIs, H-Ps, and
Solaris Suns & get on with my life.
Roy Kannady Ignorance is curable;
Martin Marietta Astronautics Stupidity is terminal.