[darcs-users] [patch414] fix a sed regexp in hidden_conflicts2.sh

Matthias Kilian kili at outback.escape.de
Sat Oct 9 21:50:21 UTC 2010


On Sat, Oct 09, 2010 at 10:27:02AM +0000, gh wrote:
> Sat Oct  9 12:16:52 CEST 2010  Guillaume Hoffmann <guillaumh at gmail.com>
>   * fix a sed regexp in hidden_conflicts2.sh

Wouldn't it be better to just use three `-e ...' args, i.e. 

	sed -e '/pattern1/d' -e '/pattern2/d' -e '/pattern3/d'

instead of

	sed -e '/pattern1\|pattern2\|pattern3/d'

It's more blurb, but you don't have to care wether sed uses basic
or extende regexps by default.

Ciao,
	Kili


More information about the darcs-users mailing list