mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-14 14:01:18 +02:00
29602 etc. etc.: description of filename extension
This commit is contained in:
parent
b12242cb3f
commit
6844a63daf
2 changed files with 17 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2011-07-28 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
|
* 29602 and subsequent changes: Doc/Zsh/expn.yo: clarify meaning
|
||||||
|
of filename extension in :r and :e modifiers (which were
|
||||||
|
slightly inconsistent).
|
||||||
|
|
||||||
2011-07-27 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
2011-07-27 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||||
|
|
||||||
* 29561: Test/A04redirect.ztst: this bit didn't get committed,
|
* 29561: Test/A04redirect.ztst: this bit didn't get committed,
|
||||||
|
@ -15170,5 +15176,5 @@
|
||||||
|
|
||||||
*****************************************************
|
*****************************************************
|
||||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||||
* $Revision: 1.5409 $
|
* $Revision: 1.5410 $
|
||||||
*****************************************************
|
*****************************************************
|
||||||
|
|
|
@ -236,7 +236,10 @@ a glob qualifier unless a file of the same name is found in the
|
||||||
current directory.
|
current directory.
|
||||||
)
|
)
|
||||||
item(tt(e))(
|
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))(
|
item(tt(h))(
|
||||||
Remove a trailing pathname component, leaving the head. This works
|
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.
|
Remove one level of quotes from the substituted words.
|
||||||
)
|
)
|
||||||
item(tt(r))(
|
item(tt(r))(
|
||||||
Remove a filename extension of the form `tt(.)var(xxx)', leaving
|
Remove a filename extension leaving the root name. Strings with no
|
||||||
the root name.
|
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(/)])(
|
item(tt(s/)var(l)tt(/)var(r)[tt(/)])(
|
||||||
Substitute var(r) for var(l) as described below.
|
Substitute var(r) for var(l) as described below.
|
||||||
|
|
Loading…
Reference in a new issue