about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-07-28 09:18:34 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-07-28 09:18:34 +0000
commit6844a63daf3e372e99dc6722304dc9cc4fcc5095 (patch)
tree1c8b15112ee865b0597af1e19084f5788c15fcce /Doc
parentb12242cb3f80991031a6f17a58296312f1bfa8ef (diff)
downloadzsh-6844a63daf3e372e99dc6722304dc9cc4fcc5095.tar.gz
zsh-6844a63daf3e372e99dc6722304dc9cc4fcc5095.tar.xz
zsh-6844a63daf3e372e99dc6722304dc9cc4fcc5095.zip
29602 etc. etc.: description of filename extension
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/expn.yo13
1 files changed, 10 insertions, 3 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index ce122cade..7060a49b4 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -236,7 +236,10 @@ a glob qualifier unless a file of the same name is found in the
 current directory.
 )
 item(tt(e))(
-Remove all but the extension.
+Remove all but the part of the filename extension following the `tt(.)';
+see the definition of the filename extension in the description of the
+tt(r) modifier below.  Note that according to that definition the result
+will be empty if the string ends with a `tt(.)'.
 )
 item(tt(h))(
 Remove a trailing pathname component, leaving the head.  This works
@@ -259,8 +262,12 @@ item(tt(Q))(
 Remove one level of quotes from the substituted words.
 )
 item(tt(r))(
-Remove a filename extension of the form `tt(.)var(xxx)', leaving
-the root name.
+Remove a filename extension leaving the root name.  Strings with no
+filename extension are not altered.  A filename
+extension is a `tt(.)' followed by any number of characters (including
+zero) that are neither `tt(.)' nor `tt(/)' and that continue to the end
+of the string.  For example, the extension of
+`tt(foo.orig.c)' is `tt(.c)', and `tt(dir.c/foo)' has no extension.
 )
 item(tt(s/)var(l)tt(/)var(r)[tt(/)])(
 Substitute var(r) for var(l) as described below.