Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/eselect:master commit in: /, modules/
Date: Thu, 28 Nov 2019 13:16:35
Message-Id: 1574946965.4201251a4b29d50f90616f6d40b1112fd3620749.ulm@gentoo
1 commit: 4201251a4b29d50f90616f6d40b1112fd3620749
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 28 13:16:05 2019 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 28 13:16:05 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/eselect.git/commit/?id=4201251a
7
8 rc.eselect: Add missing quotes.
9
10 * modules/rc.eselect (show_script_status): Quote strings to
11 prevent globbing, bug 701382.
12
13 Bug: https://bugs.gentoo.org/701382
14 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
15
16 ChangeLog | 5 +++++
17 modules/rc.eselect | 6 +++---
18 2 files changed, 8 insertions(+), 3 deletions(-)
19
20 diff --git a/ChangeLog b/ChangeLog
21 index dbddf71..6292c9a 100644
22 --- a/ChangeLog
23 +++ b/ChangeLog
24 @@ -1,3 +1,8 @@
25 +2019-11-28 Ulrich Müller <ulm@g.o>
26 +
27 + * modules/rc.eselect (show_script_status): Quote strings to
28 + prevent globbing, bug 701382.
29 +
30 2019-09-04 Ulrich Müller <ulm@g.o>
31
32 * configure.ac: Update version to 1.4.15.
33
34 diff --git a/modules/rc.eselect b/modules/rc.eselect
35 index 53f08c4..4a3c16d 100644
36 --- a/modules/rc.eselect
37 +++ b/modules/rc.eselect
38 @@ -74,13 +74,13 @@ show_script_status() {
39 done
40 case ${status} in
41 stopped)
42 - write_kv_list_entry ${script} [${x}]
43 + write_kv_list_entry ${script} "[${x}]"
44 ;;
45 started)
46 - write_kv_list_entry ${script} "$(highlight [${x}])"
47 + write_kv_list_entry ${script} "$(highlight "[${x}]")"
48 ;;
49 *)
50 - write_kv_list_entry ${script} "$(highlight_warning [${x}])"
51 + write_kv_list_entry ${script} "$(highlight_warning "[${x}]")"
52 ;;
53 esac
54 }