yahav Biran wrote:
Hi,
Does any body know a good book with examples for learning tcsh.
First, I don't think there is such a thing as "tcsh programming". I'm
not aware that programming tcsh is, in any way, different than
programming csh. You are far more likely to find what you need by
searching for "C-Shell programming".
I would like
to learn the benefits of using it by scripting such as: variables and
arithmetic, looping, functions and other stuff.
At the risk of starting a flame war, why not study bourne shell
programming instead?
The way I see it is this. If you want to do any amount of serious
scripting, shell scripting is not the right tool for the job. It's too
easy to get security problems due to non-standard file names and
wildcard expansions. If you want to code large code segments, use perl,
python etc.
Which leaves shell scripting for one of two things:
1. Small scale programming
2. Programs intended to run on systems where perl/python may not be
installed.
For 1, it doesn't really matter. For 2, bourne shell is much more likely
to be around than csh.
That aside, csh has some serious down sides for serious programming,
with some constructs (especially having to do with complicated
redirections) simply not being possible. For that reason alone, if you
have to learn something, learn bourne shell.
Thanks
yahav
Shachar
--
Shachar Shemesh
Lingnu Open Source Consulting ltd.
Have you backed up today's work? http://www.lingnu.com/backup.html
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]