Here’s the Deal
Slant is powered by a community that helps you make informed decisions. Tell us what you’re passionate about to get your personalized feed and help others.
When comparing sh vs Eshell (Emacs SHell), the Slant community recommends Eshell (Emacs SHell) for most people. In the question“What are the best Bash replacements?” Eshell (Emacs SHell) is ranked 6th while sh is ranked 8th.
Ranked in these QuestionsQuestion Ranking
Common Questions
Pros
Pro Truely the most broadly available shell
It may not be the best if you want power, but if you want to write a POSIX script that will run everywhere, it's a pretty good choice.
Pro Most influential Unix shell alongside csh
Bourne shell introduced features such as piping, here documents, command substitution, variables, control structures for condition-testing and looping and filename wildcarding.
Pro Can invoke almost any elisp function loaded in Emacs
Pro Written in emacs lisp
Cons
Con Not suitable for interactive use
The Bourne shell has always been criticized (most notably by Bill Joy, author of csh) as being unfriendly for interactive use.
It has no tilde (~) expansion. Limited file test operators. Limited math operators.