summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-07-05 08:41:13 +0000
committerJim Meyering <jim@meyering.net>2004-07-05 08:41:13 +0000
commita8aa538b0970c28e203ee6c0f33cb2adf19412bc (patch)
tree2c8c12c5663777e710570ba152e46fdc30e6846a
parent325a75af634fb03455268050765055101b30fb16 (diff)
downloadcoreutils-a8aa538b0970c28e203ee6c0f33cb2adf19412bc.tar.xz
(path_concat): Improve comment. From Paul Eggert.
-rw-r--r--lib/path-concat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/path-concat.c b/lib/path-concat.c
index 08b7cbf2b..02e92af01 100644
--- a/lib/path-concat.c
+++ b/lib/path-concat.c
@@ -48,9 +48,9 @@ longest_relative_suffix (char const *f)
/* Concatenate two pathname components, DIR and ABASE, in
newly-allocated storage and return the result.
- The resulting file name is equivalent to what you would get by
- running (cd DIR; cat BASE), where BASE is ABASE with any file system
- prefixes and leading separators removed.
+ The resulting file name F is such that the commands "ls F" and "(cd
+ DIR; ls BASE)" refer to the same file, where BASE is ABASE with any
+ file system prefixes and leading separators removed.
Arrange for a directory separator if necessary between DIR and BASE
in the result, removing any redundant separators.
In any case, if BASE_IN_RESULT is non-NULL, set