The goal is to use busybox's ash shell in scripts. I suggest to add USE ash to package sys-apps/busybox which symlinks ash into busybox. We can use it secure way if we create symlink. Optionally we can permit it in app-eselect/eselect-sh Reproducible: Always Actual Results: RarogCmexDell ~ # LC_ALL=C eix sys-apps/busybox -v * sys-apps/busybox Available versions: 1.31.1-r2^t ~1.32.0^t **9999*l^t IUSE (all versions): debug ipv6 livecd make-symlinks math mdev pam savedconfig selinux sep-usr static syslog systemd Installed versions: Version: 1.31.1-r2^t Date: 01:00:43 03/26/20 USE: ipv6 static -debug -livecd -make-symlinks -math -mdev -pam -savedconfig -selinux -sep-usr -syslog -systemd DEPEND: ${RDEPEND} virtual/libcrypt[static-libs] >=sys-kernel/linux-headers-2.6.39 RDEPEND: virtual/libcrypt:0/1= SRC_URI: EAPI: 7 Best versions/slot: 1.31.1-r2^t Package sets: system Homepage: https://www.busybox.net/ Find open bugs: https://bugs.gentoo.org/buglist.cgi?quicksearch=sys-apps%2Fbusybox Description: Utilities for rescue and embedded systems License: GPL-2
What it looks RarogCmexDell ~ # LC_ALL=C ls -la /bin/ash lrwxrwxrwx 1 root root 7 Aug 13 06:10 /bin/ash -> busybox
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1217ef8f763e30c9751950b5635198ec1b6604df commit 1217ef8f763e30c9751950b5635198ec1b6604df Author: Viorel Munteanu <ceamac.paragon@gmail.com> AuthorDate: 2022-04-17 09:52:41 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-06-30 21:40:15 +0000 sys-apps/busybox: Add /bin/ash symlink Closes: https://bugs.gentoo.org/738542 Signed-off-by: Viorel Munteanu <ceamac.paragon@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> sys-apps/busybox/busybox-1.34.1-r1.ebuild | 3 +++ 1 file changed, 3 insertions(+)