From the discussion Shell scripts
Fri, 07 Mar 2008 16:17:48 -0000
We’ve used so many where I work..
It is helpful to only use one language for all shell scripts—so you don’t have tons of code that can’t work together.
At one point, we used the same language for scripts that we were using for our web dev—so we could share libraries and not have to rewrite them in the scripting language.
In the end, this didn’t work well because PHP (and RUBY also) were not designed for shell scripting.
Soooo…..
The engineering decision would be based on some of the following criteria:
- Will you be able to use it with your existing code
- Was it designed for the shell?
- Is it a nice language? (e.g. Perl is ugly)
- Is there a lot of open-source code available for this language?
My opinion: Python is your best choice.