Matthias Kilian <[EMAIL PROTECTED]> writes: > On Mon, Nov 10, 2008 at 08:03:50PM +0000, Eric Kow wrote: >>> Mon Nov 10 02:36:03 CET 2008 Thorkil Naur <[EMAIL PROTECTED]> >>> * Work around grep -Fw platform differences in haskell_policy.sh >> >> Applied, thanks! We've discovered in a previous patch that we should >> use fgrep in place of grep -F > > I think this is a different issue. fgrep(1) isn't POSIX, but it > works on some older OSs (was it solaris?) with an old grep(1) not > supporting -F. The -w flag to grep(1) isn't POSIX either, but > according to Thorkil it behaves *differently* on different platforms. > > @Thorkil: could you send me some examples of grep -Fw differences? > > ps: does grep -w work on solaris?
According to my tests, /usr/bin/grep DOES support -w on SunOS 5.8 /usr/xpg4/bin/grep DOES support -w on SunOS 5.8. The former is the default unless overridden by the user/script. In both cases, "grep -w foo" is identical to "grep '\<foo\>'". These are the kinds of issues that make me wonder if zooko's idea of writing all the tests in Haskell would be less hassle -- theoretically then the test code would either be correct on all systems, or none. _______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
