>Number: 6494
>Category: user
>Synopsis: make(1) man page states -q exits with 1 or 0, but -1 is also
>possible
>Confidential: yes
>Severity: serious
>Priority: medium
>Responsible: bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Wed Oct 20 13:10:01 GMT 2010
>Closed-Date:
>Last-Modified:
>Originator:
>Release:
>Organization:
>Environment:
System : OpenBSD 4.5
Details : OpenBSD 4.5-stable (GENERIC.MP) #1: Thu Oct 29 09:22:18
CET 2009
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC.MP
Architecture: OpenBSD.i386
Machine : i386
>Description:
The make(1) man page states that when -q is used, it should exit with
either 1 or 0. But, when running `make -q` on various parts of OpenBSD, I've
observed that `echo $?` almost always results in 255. I believe this might be
due to the sequence
if (queryFlag)
exit(-1);
in src/usr.bin/make/compat.c .
>How-To-Repeat:
cd /usr/src/bin/cat; make clean > /dev/null
make -q; echo $?
make > /dev/null
make -q; echo $?
and observe how in both cases (not built and built,) 255 is printed.
>Fix:
Not known.
>Release-Note:
>Audit-Trail:
>Unformatted: