Gentoo Archives: gentoo-dev

From: Jonathan Callen <abcd@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: eclass/tests/tests-common.sh: debug-print family of functions
Date: Sun, 10 Oct 2010 15:55:38
Message-Id: 4CB1E1C9.8030300@gentoo.org
In Reply to: Re: [gentoo-dev] eclass/tests/tests-common.sh: debug-print family of functions by "Michał Górny"
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 On 10/10/2010 03:36 AM, Michał Górny wrote:
5 > On Sat, 9 Oct 2010 17:33:41 -0400
6 > Mike Frysinger <vapier@g.o> wrote:
7 >> this whole func is overkill. just use a single printf:
8 >
9 > I agree but I assumed Portage behavior has some reason for it. Maybe
10 > it's some kind of pseudo-multiline output?
11 >
12 > debug-print 'line1' \
13 > 'line2'
14 >
15 > where each line would be prefixed with 'debug:'.
16 >
17
18 That printf expression does the exact same thing, printing each argument
19 on a separate line, prefixed with 'debug: '.
20 - --
21 Jonathan Callen
22 -----BEGIN PGP SIGNATURE-----
23 Version: GnuPG v2.0.16 (GNU/Linux)
24 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
25
26 iQIcBAEBCAAGBQJMseHIAAoJELHSF2kinlg4ZjYQAIw1htkb1JuMK6jQru3JngHX
27 S/k0zrCqpDgj0OOuJYta6E6yjJEi7iPkLK2oswp6Ip/T+baNFFw2G25CPyJJ9QQZ
28 bcUn/ROiXKypuu5elz6QvkZvJauIMxiWQMfSfnL9Il9VNcGK19ZYVgm0IsMK4dEZ
29 xAiaL9NdS+FDaUpQe7zT9qCyD3QfKkE08NIsCgQdqSctd2SWmLQZQs4C9DMfBb3x
30 24kBW1+NtHMb48alJ1JfKixzBefeUJZnQJwXMNZMHw05uP8y8aHE5Pd4Y9A+1fuo
31 xEasllgYOdpcG32YK99UlDekvWl0GgwZ2E9kP1gv8Hjsu7LDyDPvQfW2zTs4CRKf
32 a4I+FYdkw3fUMFWDiOuUUTM6a+i60jjDgaQm78lE5kfUudgyw7oeVhj2OAk14+GF
33 pUn1zMLjnwuxlY1QIgrcJ+heU3GOlhJtnSI/4ozVImQvID3gLTjxgZZtSoarp+wu
34 EUXLLuA3Ny0ksdhu2CQrBLpw3pgIOdUu6Re6iImWVvAZYk1C1RvmZXRfSshC3vkx
35 RuWVEG194EY7WyZEOsh//7za8Kn5RfNFhEzU+hLIOny+9aGuaCDMABHDUFs//+J9
36 +iSNCdxdMFUenlUIrAscWTojnbap1sM24u5Q5XsO5OB5cXLSQMT9GOMpVfejBPfq
37 5gXeK46wvZ3J+ut2ke6s
38 =Ju7m
39 -----END PGP SIGNATURE-----

Replies