in bash: $ rc-config show Status of init scripts in runlevel "gui" acpid a e apache2 a e apcupsd a e .... $ ls -d [started] a e Square brackets works ok if there are no one-letter-named files. Otherwise bash expansion lead to in code: "write_kv_list_entry ${script} [${x}] " makes "started" -> "a e" in my case with files a, e in current directory. (I can't understand the role of square brackets here.) /usr/share/eselect/modules/rc.eselect : ----------- show_script_status() { local script=$1 status=unknown x local PATH=/lib/rc/bin:/lib64/rc/bin:${PATH} # path to service_* commands for x in stopping starting inactive started stopped; do if service_${x} ${script}; then status=${x} break fi done case ${status} in stopped) write_kv_list_entry ${script} [${x}] ;; started) write_kv_list_entry ${script} "$(highlight [${x}])" ;; *) write_kv_list_entry ${script} "$(highlight_warning [${x}])" ;; esac } -----------
Please attach the output of "emerge --info".
(In reply to Ulrich Müller from comment #1) > Please attach the output of "emerge --info". Nvm, I can reproduce the problem.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/eselect.git/commit/?id=4201251a4b29d50f90616f6d40b1112fd3620749 commit 4201251a4b29d50f90616f6d40b1112fd3620749 Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2019-11-28 13:16:05 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2019-11-28 13:16:05 +0000 rc.eselect: Add missing quotes. * modules/rc.eselect (show_script_status): Quote strings to prevent globbing, bug 701382. Bug: https://bugs.gentoo.org/701382 Signed-off-by: Ulrich Müller <ulm@gentoo.org> ChangeLog | 5 +++++ modules/rc.eselect | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-)
Created attachment 597670 [details] emerge --info
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95a6a9d60dcddb0a3a8335c5fd8f8924a8ece766 commit 95a6a9d60dcddb0a3a8335c5fd8f8924a8ece766 Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2019-11-28 19:37:24 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2019-11-28 19:39:30 +0000 app-admin/eselect: Version bump to 1.4.16. Closes: https://bugs.gentoo.org/701382 Package-Manager: Portage-2.3.80, Repoman-2.3.19 Signed-off-by: Ulrich Müller <ulm@gentoo.org> app-admin/eselect/Manifest | 1 + app-admin/eselect/eselect-1.4.16.ebuild | 61 +++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+)
Thanks for reporting!