Call for tests - BSD
dcoppa
I'm fighting with gnuisms for a port I'm working on...

Could you please test the following commands:

http://paste.unixhub.net/index.php/pE3s/

I'm very interested in test reports from both FreeBSD and OSX.

TIA,
David
venam
I'm running Linux but I can say that the regex looks right.
The first set of parenthesis only match one char, shouldn't it be like that, with the kleene start inside the parenthesis:
Code:
echo "<action=xclock>$(date)</action>" | grep -v "<action=([^>]*)>(.+ ?)</action>"
Also, can't you match the second back-reference with square-brackets?
Code:
echo "<action=xclock>$(date)</action>" | grep -v "<action=([^>]*)>([.+]?)</action>"
yrmt
None worked on Mac OS X.
dcoppa
The problem is BSD grep does not support two adjacent repetition operators "+?". Only GNU grep does.
zygotb
Nothing happens with either one on my FreeBSD 9.1 setup.
dcoppa
> Nothing happens with either one on my FreeBSD 9.1 setup.

No output means the regex works.
So FreeBSD fixed/expanded BSD regex(3), it seems...
yrmt
(11-07-2013, 04:33 PM)dcoppa Wrote: > Nothing happens with either one on my FreeBSD 9.1 setup.

No output means the regex works.
So FreeBSD fixed/expanded BSD regex(3), it seems...

Oh well then both worked on osx
dcoppa
> Oh well then both worked on osx

Well, I kind of expected it since osx uses freebsd code for standard unix utilities...

So I just need to find what commit from FreeBSD I'd need to port to OpenBSD.
berk
FreeBSD 9.1-RELEASE-p4 i386
egrep (GNU grep) 2.5.1-FreeBSD

Both commands exit with status code 1 and no output to stdout.
yrmt
That's what's expected, now dcoppa will have a fun time looking at commits on the FreeBSD svnweb :)




Members  |  Stats  |  Night Mode