aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/functions.txt
diff options
context:
space:
mode:
authorGravatar Christopher Nilsson <christopher@otherchirps.net>2010-09-12 20:29:34 +1000
committerGravatar Christopher Nilsson <christopher@otherchirps.net>2010-09-12 20:29:34 +1000
commitec8b3593f36908e19d15197b550a171938358b97 (patch)
treedb20c8a7d2fa55c12aecde08e9f71d0d4ce889d0 /doc_src/functions.txt
parent5c9b42e260fb8797cad138d3ead0810fc72f01b2 (diff)
added '-c' option to the functions.txt docs.
Diffstat (limited to 'doc_src/functions.txt')
-rw-r--r--doc_src/functions.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc_src/functions.txt b/doc_src/functions.txt
index 7643bfc6..b9057e18 100644
--- a/doc_src/functions.txt
+++ b/doc_src/functions.txt
@@ -8,6 +8,7 @@
This builtin command is used to print or erase functions.
- <code>-a</code> or <code>--all</code> list all functions, even those whose name start with an underscore.
+- <code>-c OLDNAME NEWNAME</code> or <code>--copy OLDNAME NEWNAME</code> creates a new function named NEWNAME, using the definition of the OLDNAME function.
- <code>-d DESCRIPTION</code> or <code>--description=DESCRIPTION</code> change the description of this function
- <code>-e</code> or <code>--erase</code> causes the specified functions to be erased.
- <code>-h</code> or <code>--help</code> display a help message and exit
@@ -23,5 +24,8 @@ Automatically loaded functions can not be removed using functions
-e. Either remove the definition file or change the
$fish_function_path variable to remove autoloaded functions.
+Function copies, created with -c, will not have any event/signal/on-exit
+notifications that the original may have had.
+
The exit status of the functions builtin is the number functions
specified in the argument list that do not exist.