Dash as default shell

Miroslav Suchý msuchy at redhat.com
Thu Oct 2 13:56:20 UTC 2014


On 10/02/2014 04:39 AM, Rahul Sundaram wrote:
> Is it worth considering using Dash as the default (non-interactive) shell in Fedora?

Why starting with changing target of /bin/sh?

Can we start with smaller step?
Like put in Packing Guidelines, that authors and maintainers of non-interactive shell scripts should use
   #!/usr/bin/dash
rather then
   #!/bin/sh  or
   #!/usr/bin/bash

This change will hurt nobody. And enforce nothing.
And you can slowly start persuading maintainers to change that line. Package by package. Evolution rather than revolution.

BTW on my workstation:
$ grep '#!' *|grep /bin/sh|wc -l
535
$ grep '#!' *|grep /bin/bash |wc -l
87
$ grep '#!' *|grep /bin/dash |wc -l
0

-- 
Miroslav Suchy, RHCE, RHCDS
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys


More information about the devel mailing list