Module Name: src Committed By: rillig Date: Sun Dec 27 11:47:04 UTC 2020
Modified Files: src/usr.bin/make: dir.c main.c parse.c src/usr.bin/make/unit-tests: opt-chdir.exp Log Message: make(1): exit 2 on technical errors This allows the -q option to distinguish errors from out-of-date targets. Granted, it's an edge case but it should be solved consistently anyway. The majority of cases in which make exits with exit status 1, even in -q mode, is when there are parse errors. These have been kept as-is for now as they affect many of the unit tests. The technical errors, on the other hand, occur so rarely that it's hard to write reliable tests for them that fail consistently on all platforms supported by make. To generate a diff of this commit: cvs rdiff -u -r1.252 -r1.253 src/usr.bin/make/dir.c cvs rdiff -u -r1.504 -r1.505 src/usr.bin/make/main.c cvs rdiff -u -r1.517 -r1.518 src/usr.bin/make/parse.c cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/opt-chdir.exp Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.