Quote:
Originally Posted by
nicolast0604
Hi All
Is there anyone who have the script to covnert a sh sell script to csh and can share with me?
Thanks a lot!
Nick
Bourne has the ability to open files and read files and redirect file descriptors, csh doesn't. These fundamental operations have no translation.
Bourne can redirect loops too -- csh can't. Again, these fundamental things have no translation.
Bourne has quote operators which conceivably can let you quote nearly anything, csh's horrid quotes are full of special cases. There exist things which simply can't be quoted -- no matter what you do, csh tries to evaluate it as a statement. There's no working equivalent for this basic, indispensable feature.
They are not the same. It's like trying to translate perl into assembly language.
You'd be better off learning the Bourne shell.
Any UNIX system has a bourne shell, even csh-happy ones like BSD -- they can't avoid it, too many things need it, and it's mandated by standard. And quite a few UNIX systems don't have csh at all.