Article View: muc.lists.netbsd.tech.userlevel
Article #7make: Unfinished character list in pattern
From: Edgar Fuß
Date: Tue, 13 Oct 2026 15:04
Date: Tue, 13 Oct 2026 15:04
17 lines
1463 bytes
1463 bytes
make(1) from -11 chokes on character lists in globs ending with a hyphen:
foo= foo bar foo-bar
default:
echo ${foo:M*[+-]*}
However, glob(7) says
In order to represent itself, a `-' must either be quoted
or the first or last character in the character list.
and this works as expected with make(1) from -10.
--
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:
<as5H+6InAlBkHxqG@trav.math.uni-bonn.de>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-mailShow 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: Edgar Fuß <ef@math.uni-bonn.de> Newsgroups: muc.lists.netbsd.tech.userlevel Subject: make: Unfinished character list in pattern Date: Tue, 13 Oct 2026 17:04:05 +0200 Organization: Newsgate at muc.de e.V. Sender: tech-userlevel-owner@NetBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <as5H+6InAlBkHxqG@trav.math.uni-bonn.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="49506"; mail-complaints-to="news-admin@muc.de" Content-Disposition: inline Precedence: bulk X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes