You are not logged in.

#1 2012-11-02 16:28:39

Thaodan
Member
From: Dortmund, Nordrein-Westfalen
Registered: 2012-04-28
Posts: 433

Dash as /bin/sh

After systemd is now default and they regular init scripts are going to deprected in some time. What about using dash as /bin/sh?


Linux odin 3.13.1-pf #1 SMP PREEMPT Wed Mar 5 21:47:28 CET 2014 x86_64 GNU/Linux

Offline

#2 2012-11-02 17:13:51

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,092
Website

Re: Dash as /bin/sh

Lots of pacman install scriptlets will break. With pacman 4.1, we'll probably build with /bin/bash as the scriptlet runner. At that point, you could probably symlink /bin/sh to dash.

Offline

#3 2012-11-02 17:34:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,426

Re: Dash as /bin/sh

I've been using dash as my shell for quite a while and it seems to work just fine. Not sure if anything shell-related changes with systemd as I'm still using initscripts on that computer.

Offline

#4 2012-11-02 19:31:16

Awebb
Member
Registered: 2010-05-06
Posts: 4,169

Re: Dash as /bin/sh

From the day Debian introduced dash as default sh, I kept an eye on a lot of those board threads and mailing list entries and I don't find a reason to use dash. I don't see how the smaller footprint and the alledgedly better POSIX implementation could justify the alarming number of quirks it seems to introduce. If people already go nuts about systemd fixing something that is not broken, I will probably stop coming here for half a year or so, should Arch switch to dash, because the whole flametrolling will start all over again.

Offline

#5 2012-11-02 23:36:07

karol
Archivist
Registered: 2009-05-06
Posts: 25,426

Re: Dash as /bin/sh

Whoa, nobody said Arch will switch shells :-)
I wanted to try dash to see what it was about. Yeah, it has less features, some quirks and is not designed as an interactive shell, so I switched back to bash for my new install.

Offline

#6 2012-11-03 00:47:35

jjacky
Member
Registered: 2011-11-09
Posts: 321
Website

Re: Dash as /bin/sh

Oh it'd be great if pacman 4.1 used bash for scriptlets indeed, to allow the use of dash as /bin/sh.

Not as a shell, but as /bin/sh it could be interesting. I played with that a little bit some time ago (in a VM), and during configure scripts things were noticably faster than with bash.

Offline

#7 2012-11-03 01:01:33

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 916

Re: Dash as /bin/sh

yep probably this help in performance, but (joke) whi not remplace for zsh (/joke)
no seriously

I ask: why /bin/bash and not /usr/bin/env bash???
I think only a sed script for change /bin/sh to (/usr/)bin/bash is needed and not patch anythink more


Well, I suppose that this is somekind of signature, no?

Offline

Board footer

Powered by FluxBB