CVS commit: src/usr.bin/make

"Roland Illig" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	rillig
Date:		Sun Aug 23 08:48:56 UTC 2026

Modified Files:
	src/usr.bin/make: str.c
	src/usr.bin/make/unit-tests: char-000a-new-line.exp
	    char-000a-new-line.mk directive-for.exp directive-for.mk

Log Message:
make: fix newline in word splitting

The newline character behaved differently depending on whether it
occurred at the beginning of a word or in the middle of it.  In the
middle, it didn't act as a word separator but instead stopped splitting,
thereby ignoring any following words.  This behavior was neither
documented nor to be expected.  It probably came from a time before 1993
where the makefiles were read as a single block of text instead of
splitting them into lines first.


To generate a diff of this commit:
cvs rdiff -u -r1.106 -r1.107 src/usr.bin/make/str.c
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/char-000a-new-line.exp \
    src/usr.bin/make/unit-tests/char-000a-new-line.mk
cvs rdiff -u -r1.33 -r1.34 src/usr.bin/make/unit-tests/directive-for.exp
cvs rdiff -u -r1.34 -r1.35 src/usr.bin/make/unit-tests/directive-for.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.