Gentoo Archives: gentoo-portage-dev

From: Michael Orlitzky <mjo@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] Re: [PATCHv3 1/2] MEDIUM: misc-functions: Be more quiet when removing non existing INSTALL_MASK
Date: Tue, 21 Apr 2015 19:08:56
Message-Id: 5536A040.6000509@gentoo.org
In Reply to: Re: [gentoo-portage-dev] Re: [PATCHv3 1/2] MEDIUM: misc-functions: Be more quiet when removing non existing INSTALL_MASK by Zac Medico
1 On 04/21/2015 01:28 PM, Zac Medico wrote:
2 >>
3 >> The docs for INSTALL_MASK (man 5 make.conf) don't mention that globs
4 >> will work. It's expecting a "space delimited list of file names." Does
5 >> it really take a space-delimited list of globs instead? If so, how does
6 >> that reconcile with the fact that * could match spaces?
7 >
8 > How does it conflict?
9 >
10
11 I guess it's more of a filenames-with-spaces question. Would this work?
12
13 INSTALL_MASK="Boyd\ -\ Convex Optimization.pdf"
14
15 If you can escape the spaces, then the space-separated globs aren't
16 ambiguous. I was thinking of something like this:
17
18 $ /bin/ls B*\ Convex*
19 Boyd - Convex Optimization.pdf
20
21 Normally if you stick something like that in a quoted variable, its
22 spaces can be unescaped:
23
24 INSTALL_MASK="B* Convex*"
25
26 But now it's two globs instead of one. The whole thing makes sense if
27 you can leave the space escaped though.

Replies