From b3835f952d951c9eb12fb4f117efe3275e2328a2 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Tue, 21 Apr 2009 22:06:34 +0000 Subject: Make functions whitespace safe. svn path=/trunk/; revision=487 --- libs/path-manipulation.bash.in | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'libs/path-manipulation.bash.in') diff --git a/libs/path-manipulation.bash.in b/libs/path-manipulation.bash.in index 65baefd..2e6df0d 100644 --- a/libs/path-manipulation.bash.in +++ b/libs/path-manipulation.bash.in @@ -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 : - - -- cgit v1.2.3-65-gdbad