git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* t9401 fails with OS X sed
@ 2012-10-25  3:54 Brian Gernhardt
  2012-10-25  5:04 ` Geert Bosch
  0 siblings, 1 reply; 10+ messages in thread
From: Brian Gernhardt @ 2012-10-25  3:54 UTC (permalink / raw)
  To: Git List

I seem to write these kinds of e-mails fairly regularly...

When running t9401-git-cvsserver-crlf:

expecting success: 
    check_status_options cvswork2 textfile.c "" &&
    check_status_options cvswork2 binfile.bin -kb &&
    check_status_options cvswork2 .gitattributes "" &&
    check_status_options cvswork2 mixedUp.c -kb &&
    check_status_options cvswork2 multiline.c -kb &&
    check_status_options cvswork2 multilineTxt.c "" &&
    check_status_options cvswork2/subdir withCr.bin -kb &&
    check_status_options cvswork2 subdir/withCr.bin -kb &&
    check_status_options cvswork2/subdir file.h "" &&
    check_status_options cvswork2 subdir/file.h "" &&
    check_status_options cvswork2/subdir unspecified.other "" &&
    check_status_options cvswork2/subdir newfile.bin "" &&
    check_status_options cvswork2/subdir newfile.c ""

not ok - 12 cvs status - sticky options

I have tracked it down to a sed expression that is parsing the output of cvs status:

49:    got="$(sed -n -e 's/^\s*Sticky Options:\s*//p' "${WORKDIR}/status.out")"

The problem is that cvs outputs "Sticky Options:\t\t(none)\n", but OS X's sed doesn't recognize the \s shortcut.  (According to re_format(5), \s is part of the "enhanced" regex format, which sed doesn't use.)  

It works if I change \s to [[:space:]], but I don't know how portable that is.

~~ Brian Gernhardt

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-10-26 12:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-25  3:54 t9401 fails with OS X sed Brian Gernhardt
2012-10-25  5:04 ` Geert Bosch
2012-10-25  8:41   ` Jeff King
2012-10-25 12:51     ` Torsten Bögershausen
2012-10-25 15:58       ` [PATCH] Use character class for sed expression instead of \s Ben Walton
2012-10-25 16:00         ` Brian Gernhardt
2012-10-25 16:28           ` Torsten Bögershausen
2012-10-25 18:08             ` Ben Walton
2012-10-25 20:09               ` Torsten Bögershausen
2012-10-26 12:38         ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).