Re: [PATCH v4 08/11] connect: change the --diag-url output to separate user and host
- From
Mike Hommey <mh@glandium.org>
- Date
- May 3, 2016, 22:50 UTC
- Message-ID
- <20160503225051.GB21973@glandium.org>
- In-Reply-To
- <CAPig+cTYjY7=8YqGy_4dNKK7JWinShjTR-nEMY2V6gudzS2Bgw@mail.gmail.com>
On Tue, May 03, 2016 at 01:23:37PM -0400, Eric Sunshine wrote:
Show 16 quoted lines
> On Tue, May 3, 2016 at 12:20 PM, Torsten Bögershausen <tboegi@web.de> wrote: > > On 2016-05-03 10.50, Mike Hommey wrote: > >> - git fetch-pack --diag-url "$1" | grep -v host= | grep -v port= >actual && > >> + git fetch-pack --diag-url "$1" | grep -v user= | grep -v host= | grep -v port= >actual && > > Running grep a couple of times is probably not optimal in terms of spawning a > > process.... > > Does > > > > git fetch-pack --diag-url "$1" | egrep -v "user=|host=|port=" >actual && > > work ? > > or the version like this: > > git fetch-pack --diag-url "$1" | egrep -v "(user|host|port)=" >actual && > > I always worry about portability problems with these "advanced" > expressions in grep and sed, however, both of these work fine under > Mac OS X and FreeBSD (which is where problems often manifest).
That was my concern. But it looks like we already rely on the egrep "(|)" form working in some other test, so I guess it's fine to use that.
Mike