diff options
author | Roland McGrath <roland@gnu.org> | 2002-11-18 20:31:41 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-11-18 20:31:41 +0000 |
commit | d6b3602fb169f8de109dc55cb46ecedf2bbebaa6 (patch) | |
tree | 2c98e7c1ac1d1e8a03c39b84e4fb37dff79d4e55 | |
parent | 1daa81649b2faaf989e5848392a488c786db0820 (diff) | |
download | glibc-d6b3602fb169f8de109dc55cb46ecedf2bbebaa6.tar.gz |
2002-11-18 Roland McGrath <roland@redhat.com>
* manual/pattern.texi (Variable Substitution): Fix # and ## examples.
-rw-r--r-- | manual/pattern.texi | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/manual/pattern.texi b/manual/pattern.texi index d4f287dcf2..872fde05fb 100644 --- a/manual/pattern.texi +++ b/manual/pattern.texi @@ -1509,7 +1509,7 @@ variable any portion at the end that matches the pattern @var{suffix}. If there is more than one alternative for how to match against @var{suffix}, this construct uses the shortest possible alternative. -Thus, @samp{$@{foo%%r*@}} substitutes @samp{tracto}, because the shortest +Thus, @samp{$@{foo%r*@}} substitutes @samp{tracto}, because the shortest match for @samp{r*} at the end of @samp{tractor} is just @samp{r}. @item $@{@var{variable}##@var{prefix}@} @@ -1519,8 +1519,8 @@ variable any portion at the beginning that matches the pattern @var{prefix}. If there is more than one alternative for how to match against @var{prefix}, this construct uses the longest possible match. -Thus, @samp{$@{foo%%r*@}} substitutes @samp{t}, because the largest -match for @samp{r*} at the end of @samp{tractor} is @samp{ractor}. +Thus, @samp{$@{foo##*t@}} substitutes @samp{or}, because the largest +match for @samp{*t} at the beginning of @samp{tractor} is @samp{tract}. @item $@{@var{variable}#@var{prefix}@} Substitute the value of @var{variable}, but first discard from that @@ -1529,7 +1529,7 @@ variable any portion at the beginning that matches the pattern @var{prefix}. If there is more than one alternative for how to match against @var{prefix}, this construct uses the shortest possible alternative. -Thus, @samp{$@{foo%%r*@}} substitutes @samp{tracto}, because the shortest -match for @samp{r*} at the end of @samp{tractor} is just @samp{r}. +Thus, @samp{$@{foo#*t@}} substitutes @samp{ractor}, because the shortest +match for @samp{*t} at the beginning of @samp{tractor} is just @samp{t}. @end table |