DASH vs Oh (shell)
When comparing DASH vs Oh (shell), the Slant community recommends DASH for most people. In the question“What are the best UNIX shells?” DASH is ranked 8th while Oh (shell) is ranked 16th. The most important reason people chose DASH is:
Dash has a very fast startup, this happens because the shell is started a lot of times during boot and dash minimizes the work it does during this process.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Fast startup
Dash has a very fast startup, this happens because the shell is started a lot of times during boot and dash minimizes the work it does during this process.
Pro Low memory usage, which matters a lot in embedded
It is designed to be very lightweight and has no support for shell specific extensions that are not POSIX.
Pro Default shell on Debian systems
DASH is the default shell for Debian based systems due to it speed, full POSIX compliance and low overhead.
Pro Full POSIX support
It's fully POSIX compatible, so if your script runs on dash it will probably run on all other shells.
Pro A perfect clone
It's a clone of the original System V4 Bourne shell.
Pro Concurrent
Because it's written in Go, Oh can also be thought of as a concurrent programming language.
Cons
Con Doesn't support all bash features
Dash does not support all bash features, sometimes called 'bashisms' unless explicitly pointed at /bin/sh
.
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.
