Article View: muc.lists.netbsd.tech.userlevel
Article #63Re: make: Unfinished character list in pattern
From: David Holland
Date: Sun, 01 Nov 2026 17:40
Date: Sun, 01 Nov 2026 17:40
26 lines
2970 bytes
2970 bytes
On Sun, Nov 01, 2026 at 01:38:46PM +0100, Roland Illig wrote: > That's because when make(1) parses a character range such as '+-]', it > treats ']' as an ordinary character. The range is thus from '+' to ']', > which includes all uppercase letters. > > After make(1) has determined that the character range matches, it scans > for the closing ']' of the character list, but it surprisingly starts > from the beginning of the character range. This time, the ']' is not an > ordinary character anymore but instead finishes the character list. ...so that's a bug, and the obvious fix is to make it scan correctly. There are and have been plenty of other cases where make rescans strings and doesn't do it quite the same each time, and it just shouldn't do that. (It doesn't matter if it's been wrong for 35 years; that doesn't grant any virtue to the wrong behavior.) -- David A. Holland dholland@netbsd.org -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<aud5pl8qMrnI4V7x@netbsd.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<> <16ce95cc-154d-41e6-96ca-12644cbfb9d6@gmx.de>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail From: David Holland <dholland-tech@netbsd.org> Newsgroups: muc.lists.netbsd.tech.userlevel Subject: Re: make: Unfinished character list in pattern Date: Sun, 1 Nov 2026 17:40:54 +0000 Organization: Newsgate at muc.de e.V. Sender: tech-userlevel-owner@NetBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <aud5pl8qMrnI4V7x@netbsd.org> References: <> <16ce95cc-154d-41e6-96ca-12644cbfb9d6@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="69215"; mail-complaints-to="news-admin@muc.de" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1793554856; bh=oqUTEJjz2uBV2MQMru3WoWxe0+Tx21udVuGvIxJ1C3o=; h=Date:From:To:Subject:References:In-Reply-To:List-Id: List-Unsubscribe; b=dG0KmGrPbRvLopeqKWus37B5R6QamkPJMC07W3M36W7l/jYwaG9X5UpcrLdAlnCDo II4uAJ1wKDKadY9JVeOuvFuFORIV8blcu2N1gEY1MYWAhO5XjJ0YGeMrl8Z1v8/cFW /lSWwzz7CiWz0KxYOwwdLPHyeM+7W0MKQI0qeMrs= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1793554854; bh=oqUTEJjz2uBV2MQMru3WoWxe0+Tx21udVuGvIxJ1C3o=; h=Date:From:To:Subject:References:In-Reply-To; b=EHvhIgFhQvOk8TvyOZcfUlu1SazPWd9MO3Q2RpZoZfWIKiewi2KHcp86KrfKliql+ +Qvr2HU6hnSSz6rAoj+tIHe30we8nI9ucx1a2RRFG1LsMBsDz8q0eEEWD8u74G7oe5 cPMAzIkvymyKTFjERuNbu9ig7pynl6dmE/6zqSPE= Content-Disposition: inline In-Reply-To: <16ce95cc-154d-41e6-96ca-12644cbfb9d6@gmx.de> Precedence: bulk X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes