]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(path_concat): Improve comment. From Paul Eggert.
authorJim Meyering <jim@meyering.net>
Mon, 5 Jul 2004 08:41:13 +0000 (08:41 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 5 Jul 2004 08:41:13 +0000 (08:41 +0000)
lib/path-concat.c

index 08b7cbf2b658a16ce101504ccfa5c1a3f3d11dbe..02e92af0172cd5ebed892aaac1115176a6835a97 100644 (file)
@@ -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