commit: 4201251a4b29d50f90616f6d40b1112fd3620749 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Thu Nov 28 13:16:05 2019 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Thu Nov 28 13:16:05 2019 +0000 URL: https://gitweb.gentoo.org/proj/eselect.git/commit/?id=4201251a
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 <AT> gentoo.org> ChangeLog | 5 +++++ modules/rc.eselect | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index dbddf71..6292c9a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-11-28 Ulrich Müller <u...@gentoo.org> + + * modules/rc.eselect (show_script_status): Quote strings to + prevent globbing, bug 701382. + 2019-09-04 Ulrich Müller <u...@gentoo.org> * configure.ac: Update version to 1.4.15. diff --git a/modules/rc.eselect b/modules/rc.eselect index 53f08c4..4a3c16d 100644 --- a/modules/rc.eselect +++ b/modules/rc.eselect @@ -74,13 +74,13 @@ show_script_status() { done case ${status} in stopped) - write_kv_list_entry ${script} [${x}] + write_kv_list_entry ${script} "[${x}]" ;; started) - write_kv_list_entry ${script} "$(highlight [${x}])" + write_kv_list_entry ${script} "$(highlight "[${x}]")" ;; *) - write_kv_list_entry ${script} "$(highlight_warning [${x}])" + write_kv_list_entry ${script} "$(highlight_warning "[${x}]")" ;; esac }