aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2013-03-02 12:11:17 +0100
committerUlrich Müller <ulm@gentoo.org>2013-03-02 12:11:17 +0100
commit3886c469547e839011897a86b782c420be52ca26 (patch)
treed8186ba80dd740b61d541001503050fcce0c3625 /libs
parentHonour PORTAGE_CONFIGROOT in profile module, bug 453006. (diff)
downloadeselect-3886c469547e839011897a86b782c420be52ca26.tar.gz
eselect-3886c469547e839011897a86b782c420be52ca26.tar.bz2
eselect-3886c469547e839011897a86b782c420be52ca26.zip
Update comment for relative_name function.
Diffstat (limited to 'libs')
-rw-r--r--libs/path-manipulation.bash.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/path-manipulation.bash.in b/libs/path-manipulation.bash.in
index aeee4be..0e02e0a 100644
--- a/libs/path-manipulation.bash.in
+++ b/libs/path-manipulation.bash.in
@@ -67,7 +67,8 @@ canonicalise() {
}
# relative_name
-# Convert filename $1 to be relative to directory $2 (both must exist).
+# Convert filename $1 to be relative to directory $2.
+# For both paths, all but the last component must exist.
relative_name() {
local path=$(canonicalise "$1") dir=$(canonicalise "$2") c
while [[ -n ${dir} ]]; do