* [gentoo-commits] eselect r487 - in trunk: . libs
@ 2009-04-21 22:06 Ulrich Mueller (ulm)
0 siblings, 0 replies; only message in thread
From: Ulrich Mueller (ulm) @ 2009-04-21 22:06 UTC (permalink / raw
To: gentoo-commits
Author: ulm
Date: 2009-04-21 22:06:34 +0000 (Tue, 21 Apr 2009)
New Revision: 487
Modified:
trunk/ChangeLog
trunk/libs/path-manipulation.bash.in
Log:
Make functions whitespace safe.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-04-21 21:34:09 UTC (rev 486)
+++ trunk/ChangeLog 2009-04-21 22:06:34 UTC (rev 487)
@@ -1,5 +1,8 @@
2009-04-21 Ulrich Mueller <ulm@gentoo.org>
+ * libs/path-manipulation.bash.in (basename, dirname)
+ (canonicalise): Quote arguments to make functions whitespace safe.
+
* modules/modules.eselect (do_list, do_has): Fix quoting.
* modules/compiler.eselect.in: Remove dead module.
Modified: trunk/libs/path-manipulation.bash.in
===================================================================
--- trunk/libs/path-manipulation.bash.in 2009-04-21 21:34:09 UTC (rev 486)
+++ trunk/libs/path-manipulation.bash.in 2009-04-21 22:06:34 UTC (rev 487)
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright (c) 2005-2006 Gentoo Foundation.
+# Copyright (c) 2005-2009 Gentoo Foundation.
# $Id$
# This file is part of the 'eselect' tools framework.
#
@@ -18,18 +18,16 @@
# basename wrapper
basename() {
- echo ${1##*/}
+ echo "${1##*/}"
}
# dirname wrapper
dirname() {
- echo ${1%/*}
+ echo "${1%/*}"
}
canonicalise() {
- @CANONICALISE@ $*
+ @CANONICALISE@ "$@"
}
# vim: set sw=4 et sts=4 tw=80 :
-
-
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-21 22:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-21 22:06 [gentoo-commits] eselect r487 - in trunk: . libs Ulrich Mueller (ulm)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox