From: Jakub Narebski <jnareb@gmail.com>
To: Brian Gernhardt <benji@silverinsanity.com>
Cc: Git List <git@vger.kernel.org>, Thomas Rast <trast@inf.ethz.ch>,
BJ Hargrave <bj@bjhargrave.com>
Subject: Re: t5704: problem with OS X sed
Date: Tue, 06 Mar 2012 13:01:17 -0800 (PST) [thread overview]
Message-ID: <m362ehtpgp.fsf@localhost.localdomain> (raw)
In-Reply-To: <E40E6E02-8960-4A10-9E71-28F9CDB120F8@silverinsanity.com>
Brian Gernhardt <benji@silverinsanity.com> writes:
> t5704's newest test has always failed for my on OS X. It's taken a little while for me to find the time to try to fix it. Unfortunately, my sed-fu has proven not up to the task:
>
> sed: 1: "/^-/{p;q}": extra characters at the end of q command
> not ok - 7 ridiculously long subject in boundary
> #
> # : >file4 &&
> # test_tick &&
> # git add file4 &&
> # printf "%01200d
> # " 0 | git commit -F - &&
> # test_commit fifth &&
> # git bundle create long-subject-bundle.bdl HEAD^..HEAD &&
> # git bundle list-heads long-subject-bundle.bdl >heads &&
> # test -s heads &&
> # git fetch long-subject-bundle.bdl &&
> # sed -n "/^-/{p;q}" long-subject-bundle.bdl >boundary &&
> # grep "^-$_x40 " boundary
> #
>
> I've tried various bits of whitespace or splitting the commands in
> two, but haven't hit on the proper combination of commands.
>
> Of course, if I remove the sed invocation, I get the following error
> from grep: "Regular expression too big"
>
> It seems to me that using sed to find a single line and then
> grepping for it is somewhat redundant.
>
> If someone else has suggestions on how to make this test work on OS
> X, I'm happy to help test them.
Thomas Rast proposed a patch to fix this issue, as reported by
BJ Hargrave, in
Re: [ANNOUNCE] Git 1.7.9.3
Message-ID: <87y5rd4wci.fsf@thomas.inf.ethz.ch>
http://thread.gmane.org/gmane.linux.kernel/1262318/focus=192355
as
[PATCH] t5704: fix nonportable sed/grep usages
HTH
--
Jakub Narebski
next prev parent reply other threads:[~2012-03-06 21:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-06 18:10 t5704: problem with OS X sed Brian Gernhardt
2012-03-06 21:01 ` Jakub Narebski [this message]
2012-03-06 21:18 ` Brian Gernhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m362ehtpgp.fsf@localhost.localdomain \
--to=jnareb@gmail.com \
--cc=benji@silverinsanity.com \
--cc=bj@bjhargrave.com \
--cc=git@vger.kernel.org \
--cc=trast@inf.ethz.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).