From ff03b961cb02d2df7a70e7e0e5e27acee136da59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 1 Feb 2022 21:39:03 +0100 Subject: Rewrote path-append to be portable. --- doc/ref/guile/util.texi | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc/ref/guile/util.texi') diff --git a/doc/ref/guile/util.texi b/doc/ref/guile/util.texi index 016c21c7..79d9eaab 100644 --- a/doc/ref/guile/util.texi +++ b/doc/ref/guile/util.texi @@ -295,6 +295,14 @@ Converts @var{any} to a string, as per @var{write}. @defun path-append strings ... Joins all strings into a path, squeezing duplicated delimiters, but ensuring that all delimiters that are needed are there. + +Note that delimiters embedded inside the string, which aren't first or +last in a substring (or are the only thing in a string) are +kept. Meaning that +@example +(path-append "/" "hello") ⇒ "/hello" +(path-append "/usr/local/bin" "cmd") ⇒ "/usr/local/bin/cmd" +@end example @end defun -- cgit v1.2.3