When comparing rc (shell) vs Oh (shell), the Slant community recommends rc (shell) for most people. In the question“What are the best UNIX shells?” rc (shell) is ranked 6th while Oh (shell) is ranked 16th. The most important reason people chose rc (shell) is:
rc is a very simple and easy to learn shell.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Simple
rc is a very simple and easy to learn shell.
Pro C-like syntax
rc has very C-like syntax, which is very helpful for people who are used to C-like programming languages and will find rc's syntax very enjoyable. For example:
for (i in `{seq 1 100}) {
echo $i
}
Pro Sane array handling
In rc $array
expands to the whole array and if one of the elements of the array has spaces in it, it's still considered one single element after the array variable expansion.
Pro Concurrent
Because it's written in Go, Oh can also be thought of as a concurrent programming language.
Cons
Con Lacks return statement
rc has no return
statement.
Con Unstable
It fails with errors and long Python tracebacks.
Con No configurable prompt
The only way to configure the prompt in order to use something else other than the default >
, you have to change the source code of Oh.