autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Use expr where possible


From: Peter O'Gorman
Subject: Re: [PATCH] Use expr where possible
Date: Wed, 15 Jun 2005 21:46:36 +0900
User-agent: Mozilla Thunderbird 1.0 (Macintosh/20041206)

Paul Eggert wrote:
"Peter O'Gorman" <address@hidden> writes:


% expr "Xpowerpc-apple-darwin8.1.0" : 'X[^--]*-[^--]*-\(.*\)'


How about the following instead?  I'd rather use a simpler regexp if
it works.  Can you please verify that this works on the broken
implementation?  Thanks.

$ expr 'Xpowerpc-apple-darwin8.1.0' : '.*-\(.*\)'
darwin8.1.0
$ expr 'Xpowerpc-apple-darwin8.1.0' : '.*-\(.*\)-.*'
apple
$ expr 'Xpowerpc-apple-darwin8.1.0' : 'X\(.*\)-.*-'
powerpc


Yes, this works also. Thank you.

Peter
--
Peter O'Gorman - http://www.pogma.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]