On Wed, Apr 24, 2024 at 03:49:06PM +0100, Ian Abbott wrote:
> Hi,
> 
> Currently, the Kconfig option for BASH_SH (which causes /usr/bin/sh to be
> linked to bash) is as follows:
> 
> config BASH_SH
>       bool
>       default BUSYBOX = n || BUSYBOX_SH_IS_NONE
> 
> However, if DASH_LINK_SH is enabled, that will cause /usr/bin/sh to be
> linked to dash, resulting in a conflict.
> 
> I suppose the most robust fix would be to add a prompt to allow BASH_SH to
> be configured manually. I'm not sure if the default should be changed to
> `default (BUSYBOX = n || BUSYBOX_SH_IS_NONE) && DASH_LINK_SH = n`. If both
> dash and bash are installed, it is likely that dash would be used as the
> system shell and bash would be used as the interactive shell.

Imho, having both bash and dash only makes sense if /bin/sh is dash. So I
think changing the default as suggested above is the correct fix.

Michael

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

Reply via email to