mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] /bin/sh link setting incompatibility when bash and dash installed
@ 2024-04-24 14:49 Ian Abbott
  2024-05-13  6:29 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Ian Abbott @ 2024-04-24 14:49 UTC (permalink / raw)
  To: ptxdist

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.

-- 
-=( Ian Abbott <abbotti@mev.co.uk> || MEV Ltd. is a company  )=-
-=( registered in England & Wales.  Regd. number: 02862268.  )=-
-=( Regd. addr.: S11 & 12 Building 67, Europa Business Park, )=-
-=( Bird Hall Lane, STOCKPORT, SK3 0XA, UK. || www.mev.co.uk )=-



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] /bin/sh link setting incompatibility when bash and dash installed
  2024-04-24 14:49 [ptxdist] /bin/sh link setting incompatibility when bash and dash installed Ian Abbott
@ 2024-05-13  6:29 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2024-05-13  6:29 UTC (permalink / raw)
  To: Ian Abbott; +Cc: ptxdist

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 |



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-13  6:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-24 14:49 [ptxdist] /bin/sh link setting incompatibility when bash and dash installed Ian Abbott
2024-05-13  6:29 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox