Re: Bug in Expr 2.0.12 - .* too greedy
Jim Meyering <[email protected]> Fri, 08 Nov 2002 20:07:23 +0100
| Newsgroups | gmane.comp.version-control.cvs.bugs,gmane.comp.gnu.sh-utils.bugs |
|---|---|
| Message-ID | <[email protected]> |
Derek Robert Price <[email protected]> wrote: > The expr, version 2.0.12, which happens to be distributed with RH > Linux 8.0 is broken. .* is way too greedy. Here's a test case: Hi Derek, Thanks for the report. I get the expected (not buggy) results when using the latest test release: ftp://alpha.gnu.org/gnu/fetish/coreutils-4.5.3.tar.gz $ expr 'abc > xxxxx > def' : 'abc > .* > def' 13 $ expr --vers expr (GNU coreutils) 4.5.3 So I guess you should encourage RH to upgrade. > How reproducible: > Always > > Steps to Reproduce: > $ expr 'abc > xxxxx > def' : 'abc > .* > def' > > Actual Results: 0 > > Expected Results: 13