From d6b3602fb169f8de109dc55cb46ecedf2bbebaa6 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 18 Nov 2002 20:31:41 +0000 Subject: [PATCH] 2002-11-18 Roland McGrath * manual/pattern.texi (Variable Substitution): Fix # and ## examples. --- manual/pattern.texi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/manual/pattern.texi b/manual/pattern.texi index d4f287d..872fde0 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 -- 2.7.4