Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] emacs r1280 - eselect-emacs
Date: Thu, 04 Jun 2009 10:27:02
Message-Id: E1MCAA0-0007SL-Ds@stork.gentoo.org
1 Author: ulm
2 Date: 2009-06-04 10:26:59 +0000 (Thu, 04 Jun 2009)
3 New Revision: 1280
4
5 Modified:
6 eselect-emacs/ctags.eselect
7 eselect-emacs/emacs.eselect
8 Log:
9 Tiny syntax tweak in testing for empty array.
10
11 Modified: eselect-emacs/ctags.eselect
12 ===================================================================
13 --- eselect-emacs/ctags.eselect 2009-05-30 09:56:48 UTC (rev 1279)
14 +++ eselect-emacs/ctags.eselect 2009-06-04 10:26:59 UTC (rev 1280)
15 @@ -145,7 +145,7 @@
16 targets=( $(find_targets) )
17
18 write_list_start "Available ${CTAGS} symlink targets:"
19 - if [[ -n ${targets[@]} ]]; then
20 + if [[ ${#targets[@]} -gt 0 ]]; then
21 for (( i = 0; i < ${#targets[@]}; i++ )); do
22 # Display a star to indicate the currently chosen version
23 [[ ${targets[i]} = \
24
25 Modified: eselect-emacs/emacs.eselect
26 ===================================================================
27 --- eselect-emacs/emacs.eselect 2009-05-30 09:56:48 UTC (rev 1279)
28 +++ eselect-emacs/emacs.eselect 2009-06-04 10:26:59 UTC (rev 1280)
29 @@ -187,7 +187,7 @@
30 targets=( $(find_targets) )
31
32 write_list_start "Available Emacs symlink targets:"
33 - if [[ -n ${targets[@]} ]]; then
34 + if [[ ${#targets[@]} -gt 0 ]]; then
35 for (( i = 0; i < ${#targets[@]}; i++ )); do
36 # Display a star to indicate the currently chosen version
37 [[ ${targets[i]} = \