mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Ian Abbott <abbotti@mev.co.uk>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 0/2] Change selection of /usr/bin/sh symlink
Date: Mon, 13 May 2024 13:55:04 +0100	[thread overview]
Message-ID: <20240513132247.25521-1-abbotti@mev.co.uk> (raw)

BusyBox, Dash, and Bash all allow installation of the /usr/bin/sh
symbolic link to their respective executable, busybox, dash or bash.

This patch series only allows Dash to install the /usr/bin/sh symlink if
it is not installed by BusyBox (unless overridden by the ALLYES config
option), and only allows Bash to install the /usr/bin/sh symlink if it
is not installed by either BusyBox or Dash (unless overridden by the
ALLYES config option).

Bash is powerful but slow compared to BusyBox or Dash shells, so it is
common to install a faster shell for executing shell scripts that
typically use /bin/sh as the interpreter selected by their "shebang"
line, and reserve Bash for use mostly as the interactive login shell.

Patches:

1) dash: install /usr/bin/sh symlink by default if not provided by BusyBox
2) bash: allow installation of /usr/bin/sh symlink to be chosen manually

 rules/bash.in | 14 +++++++++++++-
 rules/dash.in |  5 +++++
 2 files changed, 18 insertions(+), 1 deletion(-)



             reply	other threads:[~2024-05-13 13:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-13 12:55 Ian Abbott [this message]
2024-05-13 12:55 ` [ptxdist] [PATCH 1/2] dash: install /usr/bin/sh symlink by default if not provided by BusyBox Ian Abbott
2024-05-31  6:08   ` [ptxdist] [APPLIED] " Michael Olbrich
2024-05-13 12:55 ` [ptxdist] [PATCH 2/2] bash: allow installation of /usr/bin/sh symlink to be chosen manually Ian Abbott
2024-05-31  6:08   ` [ptxdist] [APPLIED] " Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240513132247.25521-1-abbotti@mev.co.uk \
    --to=abbotti@mev.co.uk \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox