1 |
Author: ulm |
2 |
Date: 2009-04-21 22:06:34 +0000 (Tue, 21 Apr 2009) |
3 |
New Revision: 487 |
4 |
|
5 |
Modified: |
6 |
trunk/ChangeLog |
7 |
trunk/libs/path-manipulation.bash.in |
8 |
Log: |
9 |
Make functions whitespace safe. |
10 |
|
11 |
Modified: trunk/ChangeLog |
12 |
=================================================================== |
13 |
--- trunk/ChangeLog 2009-04-21 21:34:09 UTC (rev 486) |
14 |
+++ trunk/ChangeLog 2009-04-21 22:06:34 UTC (rev 487) |
15 |
@@ -1,5 +1,8 @@ |
16 |
2009-04-21 Ulrich Mueller <ulm@g.o> |
17 |
|
18 |
+ * libs/path-manipulation.bash.in (basename, dirname) |
19 |
+ (canonicalise): Quote arguments to make functions whitespace safe. |
20 |
+ |
21 |
* modules/modules.eselect (do_list, do_has): Fix quoting. |
22 |
|
23 |
* modules/compiler.eselect.in: Remove dead module. |
24 |
|
25 |
Modified: trunk/libs/path-manipulation.bash.in |
26 |
=================================================================== |
27 |
--- trunk/libs/path-manipulation.bash.in 2009-04-21 21:34:09 UTC (rev 486) |
28 |
+++ trunk/libs/path-manipulation.bash.in 2009-04-21 22:06:34 UTC (rev 487) |
29 |
@@ -1,6 +1,6 @@ |
30 |
#!/bin/bash |
31 |
|
32 |
-# Copyright (c) 2005-2006 Gentoo Foundation. |
33 |
+# Copyright (c) 2005-2009 Gentoo Foundation. |
34 |
# $Id$ |
35 |
# This file is part of the 'eselect' tools framework. |
36 |
# |
37 |
@@ -18,18 +18,16 @@ |
38 |
|
39 |
# basename wrapper |
40 |
basename() { |
41 |
- echo ${1##*/} |
42 |
+ echo "${1##*/}" |
43 |
} |
44 |
|
45 |
# dirname wrapper |
46 |
dirname() { |
47 |
- echo ${1%/*} |
48 |
+ echo "${1%/*}" |
49 |
} |
50 |
|
51 |
canonicalise() { |
52 |
- @CANONICALISE@ $* |
53 |
+ @CANONICALISE@ "$@" |
54 |
} |
55 |
|
56 |
# vim: set sw=4 et sts=4 tw=80 : |
57 |
- |
58 |
- |