diff options
author | 2013-03-02 12:11:17 +0100 | |
---|---|---|
committer | 2013-03-02 12:11:17 +0100 | |
commit | 3886c469547e839011897a86b782c420be52ca26 (patch) | |
tree | d8186ba80dd740b61d541001503050fcce0c3625 /libs | |
parent | Honour PORTAGE_CONFIGROOT in profile module, bug 453006. (diff) | |
download | eselect-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.in | 3 |
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 |