summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-04-15 11:40:23 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-04-15 11:40:23 -0700
commit9e9513462ff0f82854dbc9d3f8bd42cd2ed8766e (patch)
tree5d9977ff20d29f39d351254e3bb9930ef2144915 /txr.1
parent3f83104f00ce3818a3ea257be7ea8a7b4134e9be (diff)
downloadtxr-9e9513462ff0f82854dbc9d3f8bd42cd2ed8766e.tar.gz
txr-9e9513462ff0f82854dbc9d3f8bd42cd2ed8766e.tar.bz2
txr-9e9513462ff0f82854dbc9d3f8bd42cd2ed8766e.zip
New function: touch.
* lisplib.c (copy_file_set_entries): Register autoload for touch. * share/txr/stdlib/copy-file.tl (touch): New function. * txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.131
1 files changed, 31 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 102a6a74..c02d7fb3 100644
--- a/txr.1
+++ b/txr.1
@@ -59197,6 +59197,37 @@ and
allowing the caller to retry individual failed operations or skip the objects
on which operations have failed.
+.coNP Function @ touch
+.synb
+.mets (touch < path <> [ ref-path ])
+.syne
+.desc
+The
+.code touch
+function updates the modification timestamp of the filesystem object
+named by
+.metn path .
+If the object doesn't exist, it is created as a regular file.
+
+If
+.meta ref-path
+is specified, then the modification timestamp of the object denoted by
+.meta path
+is updated to be equivalent to the modification timestamp of
+the object denoted by
+.metn ref-path .
+Otherwise
+.meta ref-path
+being absent, the modification timestamp of
+.meta path
+is set to the current time.
+
+If
+.meta path
+is a symbolic link, it is dereferenced;
+.code touch
+operates on the target of the link.
+
.SS* Unix Filesystem Object Existence, Type and Access Tests
Functions in this category perform various tests on the attributes of