aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-02-01 21:39:03 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-02-01 22:10:14 +0100
commitff03b961cb02d2df7a70e7e0e5e27acee136da59 (patch)
tree877e2beb907db20a35d89c7fd334dd06170ac719 /doc
parentAdd path-split. (diff)
downloadcalp-ff03b961cb02d2df7a70e7e0e5e27acee136da59.tar.gz
calp-ff03b961cb02d2df7a70e7e0e5e27acee136da59.tar.xz
Rewrote path-append to be portable.
Diffstat (limited to 'doc')
-rw-r--r--doc/ref/guile/util.texi8
1 files changed, 8 insertions, 0 deletions
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