[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: basename function in 4.3 cygwin

From: Ronald Hoogenboom
Subject: RE: basename function in 4.3 cygwin
Date: Fri, 21 May 2021 16:03:11 +0000

I didn't see any different behavior whether the backslash preceded '?' or any 
normal character (hence the 'x' in my example). Maybe it is different with '*', 
I didn't check that and it is not my use-case.

-----Original Message-----
From: Eli Zaretskii <eliz@gnu.org> 
Sent: Friday, 21 May 2021 5:58 PM
To: Ronald Hoogenboom <RHoogenboom@irdeto.com>
Cc: psmith@gnu.org; bug-make@gnu.org
Subject: Re: basename function in 4.3 cygwin

> From: Ronald Hoogenboom <RHoogenboom@irdeto.com>
> CC: "psmith@gnu.org" <psmith@gnu.org>, "bug-make@gnu.org" 
> <bug-make@gnu.org>
> Date: Fri, 21 May 2021 15:17:53 +0000
> As I said, possibly not a bug, but a change in functionality nevertheless.
> It is all about what you consider to be "the directory part" and this 
> consideration has apparently changed.

Not in the native port of Make, it didn't (I just tried).  Maybe in the Cygwin 
port, which I don't have.

> The root cause of this is (as always) the dual meaning of a backslash: an 
> escape character or a path separator. Maybe a better way of escaping would be 
> single-quoting it. Note that in my real use-case, the character after the 
> backslash is a '?', which needs to be passed un-molested by the shell. I have 
> some weird experiences with single quoting in makefiles, though.

AFAIK, the Windows port treats the backslash as a quote character where it 
makes sense (e.g., in wildcards).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]