|
| From: | Paul Eggert |
| Subject: | Re: [PATCH] Do not assume glibc glob internals |
| Date: | Fri, 29 Sep 2017 12:57:43 -0700 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
On 09/29/2017 01:06 AM, Eli Zaretskii wrote:
Are there other situations where Make uses "foo/" and expects that to mean that 'foo' is a directory?
It's pretty much any situation where Make looks for file names that the user specifies. As a trivial example, the Makefile rule:
foo/:; mkdir -p $@should fail if "foo" exists as a regular file, since Make will invoke mkdir and mkdir will fail. If Make strips the trailing / before testing the existence of "foo", Make will incorrectly skip the mkdir and so will not guarantee that foo/ is a directory.
| [Prev in Thread] | Current Thread | [Next in Thread] |