Since I am conversant in Ruby, I am about to script a few things on OSX using it. But then I thought, perhaps I am missing the boat. I know a lot of reasons to prefer Ruby over Bash (or whatever sh-compatible command language interpreter), but I don't know any reasons not to. What is the upside of programming the shell directly?
I intend to take advantage of system commands using system
whenever necessary.
Note: I already know that Ruby won't always be there, but I'm interested in mostly technical, semantic and syntactic criteria.
Edit: By Ruby not always being there, I mean that it is not a standard part of all *nix distributions, unlike vi
.