about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdam Spiers <adamspiers@users.sourceforge.net>2001-08-15 13:56:30 +0000
committerAdam Spiers <adamspiers@users.sourceforge.net>2001-08-15 13:56:30 +0000
commit71a6bbaebc0b10177ec73e4112ae6482d81d0334 (patch)
treeb710812bcd55bc99a8b982fe7a13fbae794647d3
parenta4ba95139dafff2c7b69bf6de421bdce0de280a4 (diff)
downloadzsh-71a6bbaebc0b10177ec73e4112ae6482d81d0334.tar.gz
zsh-71a6bbaebc0b10177ec73e4112ae6482d81d0334.tar.xz
zsh-71a6bbaebc0b10177ec73e4112ae6482d81d0334.zip
unposted: Mention the word `greedy' in the docs for the S flag, to
make it easier to find for those used to Perl-speak.
-rw-r--r--ChangeLog4
-rw-r--r--Doc/Zsh/expn.yo4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1f1adfb38..419ac6294 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2001-08-15  Adam Spiers  <adam@spiers.net>
 
+	* unposted: Doc/Zsh/expn.yo: mention the word `greedy' in the
+	docs for the S flag, to make it easier to find for those used to
+	Perl-speak.
+
 	* unposted: Doc/Zsh/compsys.yo: add missing docs for cache-policy
 	style.
 
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index b7d010bc8..215182f71 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -795,8 +795,8 @@ item(tt(S))(
 Search substrings as well as beginnings or ends; with tt(#) start
 from the beginning and with tt(%) start from the end of the string.
 With substitution via tt(${)...tt(/)...tt(}) or
-tt(${)...tt(//)...tt(}), specifies that the shortest instead of the
-longest match should be replaced.
+tt(${)...tt(//)...tt(}), specifies non-greedy matching, i.e. that the
+shortest instead of the longest match should be replaced.
 )
 item(tt(I:)var(expr)tt(:))(
 Search the var(expr)th match (where var(expr) evaluates to a number).