The following reply was made to PR user/6494; it has been noted by GNATS.

From: Jason McIntyre <j...@kerhand.co.uk>
To: gn...@openbsd.org
Cc:  
Subject: Re: user/6494: make -q exits with -1
Date: Sat, 23 Oct 2010 07:52:30 +0100

 On Fri, Oct 22, 2010 at 07:50:34PM +0100, Jason McIntyre wrote:
 > 
 > the man page is in line with what posix specifies, so i'm going to go
 > out on a limb and say the code is wrong. specifically, -q is supposed to
 > return 1, not -1, if the target file is not up to date. so i'd further
 > say we should expect it to "exit(1)", not -1.
 > 
 > i checked netbsd source, and they return 1, not -1. freebsd have no
 > compat.c file. i don;t have net/free source trees to dig any further.
 > anyone want to fix this, or have another solution?
 > 
 
 ...and i tracked down the netbsd commit where this happened:
 11:13:46 2001 UTC (9 years, 6 months ago) by wiz
 Branch: MAIN
 Changes since 1.31: +4 -4 lines
 Diff to previous 1.31 (colored)
 Negative exit code cleanup: Replace exit(-x) with exit(x).
 As seen on tech-userlevel.
 __________________________________________________________________    

Reply via email to