summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-01-17 15:56:34 +0100
committerBram Moolenaar <Bram@vim.org>2016-01-17 15:56:34 +0100
commit43a34f9f74fdce462fa250baab620264c28b6165 (patch)
tree4626c150935791d87ea175fa662d40b79e4ba634 /runtime
parent4119cf80e1e534057680f9543e73edf7967c2440 (diff)
downloadvim-git-43a34f9f74fdce462fa250baab620264c28b6165.tar.gz
patch 7.4.1114v7.4.1114
Problem: delete() does not work well with symbolic links. Solution: Recognize symbolik links.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 6edd3f541..fb6a85144 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -2755,13 +2755,14 @@ deepcopy({expr}[, {noref}]) *deepcopy()* *E698*
delete({fname} [, {flags}]) *delete()*
Without {flags} or with {flags} empty: Deletes the file by the
- name {fname}.
+ name {fname}. This also works when {fname} is a symbolic link.
When {flags} is "d": Deletes the directory by the name
- {fname}. This fails when {fname} is not empty.
+ {fname}. This fails when directory {fname} is not empty.
When {flags} is "rf": Deletes the directory by the name
- {fname} and everything in it, recursively. Be careful!
+ {fname} and everything in it, recursively. BE CAREFUL!
+ A symbolic link itself is deleted, not what it points to.
The result is a Number, which is 0 if the delete operation was
successful and -1 when the deletion failed or partly failed.