Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] New emul-libs.eclass
Date: Mon, 19 Feb 2007 19:08:20
Message-Id: 200702191339.22854.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] New emul-libs.eclass by Simon Stelling
1 On Monday 19 February 2007, Simon Stelling wrote:
2 > Mike Frysinger wrote:
3 > > every use of find | xargs in there should be fixed to use find -print0 |
4 > > xargs -0
5 >
6 > The second one, yes, that's fixed now. The first one, no, cause egrep
7 > wouldn't like it. The xargs -d'
8 > ' ensures that \n instead of a simple space is used as delimiter. If
9 > some package really installs files with a newline character in its name,
10 > well, then that package is just not worth including in emul-packages.
11
12 i'd point out that grep does have an option for dealing with NUL delimited
13 data (-z), but that isnt POSIX so the bsd guys would prob complain :P
14
15 that said, the syntax you're using is ugly:
16 xargs -d'
17 '
18
19 replace that with:
20 xargs -d $'\n'
21 -mike

Replies

Subject Author
Re: [gentoo-dev] New emul-libs.eclass Simon Stelling <blubb@g.o>