1 |
Author: ulm |
2 |
Date: 2009-04-23 05:47:21 +0000 (Thu, 23 Apr 2009) |
3 |
New Revision: 1266 |
4 |
|
5 |
Modified: |
6 |
eselect-emacs/ctags.eselect |
7 |
eselect-emacs/emacs.eselect |
8 |
Log: |
9 |
Now the quoting should really really be right. |
10 |
|
11 |
Modified: eselect-emacs/ctags.eselect |
12 |
=================================================================== |
13 |
--- eselect-emacs/ctags.eselect 2009-04-22 21:34:23 UTC (rev 1265) |
14 |
+++ eselect-emacs/ctags.eselect 2009-04-23 05:47:21 UTC (rev 1266) |
15 |
@@ -41,7 +41,7 @@ |
16 |
local emacs |
17 |
if [[ -L ${ROOT}${bindir}/emacs && \ |
18 |
-e $(canonicalise "${ROOT}${bindir}/emacs") ]]; then |
19 |
- emacs=$(basename $(readlink "${ROOT}${bindir}/emacs") ) |
20 |
+ emacs=$(basename "$(readlink "${ROOT}${bindir}/emacs")") |
21 |
[[ -f ${ROOT}${bindir}/${CTAGS}-${emacs} ]] && echo "${CTAGS}-${emacs}" |
22 |
elif [[ -f ${ROOT}${bindir}/xemacs ]]; then |
23 |
[[ -f ${ROOT}${bindir}/${CTAGS}-xemacs ]] && echo "${CTAGS}-xemacs" |
24 |
@@ -124,7 +124,7 @@ |
25 |
if [[ -L ${ROOT}${bindir}/${CTAGS} && \ |
26 |
-e $(canonicalise "${ROOT}${bindir}/${CTAGS}") ]]; then |
27 |
write_kv_list_entry \ |
28 |
- $(basename $(readlink "${ROOT}${bindir}/${CTAGS}") ) "" |
29 |
+ "$(basename "$(readlink "${ROOT}${bindir}/${CTAGS}")")" "" |
30 |
elif [[ -e ${ROOT}${bindir}/${CTAGS} ]]; then |
31 |
write_kv_list_entry \ |
32 |
"(not a symlink or target of symlink does not exist)" "" |
33 |
@@ -150,7 +150,7 @@ |
34 |
for (( i = 0; i < ${#targets[@]}; i = i + 1 )); do |
35 |
# Display a star to indicate the currently chosen version |
36 |
[[ ${targets[i]} = \ |
37 |
- $(basename $(readlink "${ROOT}${bindir}/${CTAGS}") ) ]] \ |
38 |
+ $(basename "$(readlink "${ROOT}${bindir}/${CTAGS}")") ]] \ |
39 |
&& targets[i]="${targets[i]} $(highlight '*')" |
40 |
done |
41 |
write_numbered_list "${targets[@]}" |
42 |
@@ -199,7 +199,7 @@ |
43 |
|
44 |
local current="" |
45 |
if [[ -L ${ROOT}${bindir}/${CTAGS} ]]; then |
46 |
- current=$(basename $(readlink "${ROOT}${bindir}/${CTAGS}") ) |
47 |
+ current=$(basename "$(readlink "${ROOT}${bindir}/${CTAGS}")") |
48 |
if [[ ! -e $(canonicalise "${ROOT}${bindir}/${CTAGS}") ]]; then |
49 |
# clean up dead symlinks |
50 |
remove_symlinks || die -q "Couldn't remove existing symlink" |
51 |
|
52 |
Modified: eselect-emacs/emacs.eselect |
53 |
=================================================================== |
54 |
--- eselect-emacs/emacs.eselect 2009-04-22 21:34:23 UTC (rev 1265) |
55 |
+++ eselect-emacs/emacs.eselect 2009-04-23 05:47:21 UTC (rev 1266) |
56 |
@@ -164,7 +164,7 @@ |
57 |
if [[ -L ${ROOT}${bindir}/emacs && \ |
58 |
-e $(canonicalise "${ROOT}${bindir}/emacs") ]]; then |
59 |
write_kv_list_entry \ |
60 |
- $(basename $(readlink "${ROOT}${bindir}/emacs") ) "" |
61 |
+ "$(basename "$(readlink "${ROOT}${bindir}/emacs")")" "" |
62 |
elif [[ -e ${ROOT}${bindir}/emacs ]]; then |
63 |
write_kv_list_entry \ |
64 |
"(not a symlink or target of symlink does not exist)" "" |
65 |
@@ -192,7 +192,7 @@ |
66 |
for (( i = 0; i < ${#targets[@]}; i = i + 1 )); do |
67 |
# Display a star to indicate the currently chosen version |
68 |
[[ ${targets[i]} = \ |
69 |
- $(basename $(readlink "${ROOT}${bindir}/emacs") ) ]] \ |
70 |
+ $(basename "$(readlink "${ROOT}${bindir}/emacs")") ]] \ |
71 |
&& targets[i]="${targets[i]} $(highlight '*')" |
72 |
done |
73 |
write_numbered_list "${targets[@]}" |