Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: Zac Medico <zmedico@g.o>
Cc: gentoo-portage-dev@l.g.o, Michael Palimaka <kensington@g.o>
Subject: Re: [gentoo-portage-dev] [PATCH 1/3] bin/misc-functions.sh: Introduce eqalog and eqawarnlog functions.
Date: Sat, 25 Oct 2014 20:25:33
Message-Id: 20141025222523.2676193c@pomiot.lan
In Reply to: Re: [gentoo-portage-dev] [PATCH 1/3] bin/misc-functions.sh: Introduce eqalog and eqawarnlog functions. by Zac Medico
1 Dnia 2014-10-25, o godz. 12:42:14
2 Zac Medico <zmedico@g.o> napisał(a):
3
4 > On 10/25/2014 09:15 AM, Michael Palimaka wrote:
5 > > +eqalog() {
6 > > + local tag=$1 x
7 > > + shift
8 > > + for x in "$@" ; do
9 > > + echo "${tag}" "${x}" >> "${T}"/qa.log
10 > > + done
11 > > +}
12 >
13 > Your patches look good to me, except that I think eqalog should escape
14 > any \n characters that might be embedded in the arguments.
15
16 Why? That sounds like some unsafe fancy feature only one person would
17 use. Embedding newlines in bash is trivial, why make them implicit with
18 a lot of added complexity?
19
20 --
21 Best regards,
22 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies