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. |