Morkelon
Posts: 3
Joined: Thu Feb 09, 2017 1:00 pm

Dash vs Bash question

Wed Feb 19, 2020 2:44 am

Hi,
I miss Bash history over dash. However, I suppose Raspbian comes with Dash for some reason and I wanted to know if there's any performance impact or something I should be aware, or if it's even possible to use Bash to have history functionality.
I really hate typing stuff 3 times because I have to change 1 character.

User avatar
scruss
Posts: 3256
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Dash vs Bash question

Wed Feb 19, 2020 3:00 am

Huh? Raspbian uses Bash as its interactive shell. As the regular user, type echo $SHELL, and it will be Bash.

Debian uses Dash as the default non-interactive shell. As they note “It is not intended to be used interactively by a user, for example, in a terminal emulator, but rather focuses on speed and compatibility with standards. Therefore, many interactive features are not present in Dash, making it faster and more memory efficient than Bash. ”
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

jahboater
Posts: 5825
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: Dash vs Bash question

Wed Feb 19, 2020 4:17 am

/bin/sh is a symbolic link to dash
Pi4 8GB running PIOS64

User avatar
scruss
Posts: 3256
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Dash vs Bash question

Wed Feb 19, 2020 2:16 pm

Yes, but no-one's going to have that as an interactive shell by default.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

Return to “General discussion”