From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id DE54C138CA2 for ; Tue, 21 Apr 2015 19:20:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E0215E0938; Tue, 21 Apr 2015 19:20:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7CFF8E092D for ; Tue, 21 Apr 2015 19:20:18 +0000 (UTC) Received: from [10.0.31.145] (unknown [100.42.98.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: zmedico) by smtp.gentoo.org (Postfix) with ESMTPSA id 9A3043407D3 for ; Tue, 21 Apr 2015 19:20:17 +0000 (UTC) Message-ID: <5536A2EF.4020604@gentoo.org> Date: Tue, 21 Apr 2015 12:20:15 -0700 From: Zac Medico User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-portage-dev@lists.gentoo.org Subject: Re: [gentoo-portage-dev] Re: [PATCHv3 1/2] MEDIUM: misc-functions: Be more quiet when removing non existing INSTALL_MASK References: <1429559160-11646-1-git-send-email-bertrand@jacquin.bzh> <55358E1D.1070801@gentoo.org> <55359BBB.4080605@gentoo.org> <553632C5.2070508@gentoo.org> <553688C3.1020300@gentoo.org> <5536A040.6000509@gentoo.org> In-Reply-To: <5536A040.6000509@gentoo.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: aee7ad68-05c8-465d-bde4-3b7fe08af094 X-Archives-Hash: 268738bdb245a76d00e452673ccaddda On 04/21/2015 12:08 PM, Michael Orlitzky wrote: > On 04/21/2015 01:28 PM, Zac Medico wrote: >>> >>> The docs for INSTALL_MASK (man 5 make.conf) don't mention that globs >>> will work. It's expecting a "space delimited list of file names." Does >>> it really take a space-delimited list of globs instead? If so, how does >>> that reconcile with the fact that * could match spaces? >> >> How does it conflict? >> > > I guess it's more of a filenames-with-spaces question. Would this work? > > INSTALL_MASK="Boyd\ -\ Convex Optimization.pdf" No, it doesn't seem to work given the current code. For example: $ INSTALL_MASK="Boyd\ -\ Convex Optimization.pdf" $ for x in $INSTALL_MASK; do echo "$x" ; done Boyd\ -\ Convex Optimization.pdf > If you can escape the spaces, then the space-separated globs aren't > ambiguous. I was thinking of something like this: > > $ /bin/ls B*\ Convex* > Boyd - Convex Optimization.pdf > > Normally if you stick something like that in a quoted variable, its > spaces can be unescaped: > > INSTALL_MASK="B* Convex*" > > But now it's two globs instead of one. The whole thing makes sense if > you can leave the space escaped though. I don't think the inventor of INSTALL_MASK thought about these kinds of cases. -- Thanks, Zac