From owner-freebsd-bugs Thu Aug 14 04:40:36 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id EAA12545 for bugs-outgoing; Thu, 14 Aug 1997 04:40:36 -0700 (PDT) Received: from gw.itfs.nsk.su (gw.itfs.nsk.su [193.124.36.33]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id EAA12534 for ; Thu, 14 Aug 1997 04:40:18 -0700 (PDT) Received: from itfs.UUCP (uucp@localhost) by gw.itfs.nsk.su (8.6.12/8.6.12) with UUCP id SAA16433 for bugs@freebsd.org; Thu, 14 Aug 1997 18:40:14 +0700 Received: by itfs.nsk.su; Thu, 14 Aug 97 18:31:32 +0700 (NST) Received: (from daemon@localhost) by news.itfs.nsk.su (8.7.5/8.6.12) id SAA11683; Thu, 14 Aug 1997 18:22:02 +0700 (NSD) From: nnd@itfs.nsk.su To: bugs@freebsd.org Subject: Re: bin/4291: /usr/bin/make - inconsistent -j flag parsing Date: 14 Aug 1997 11:22:01 GMT Message-ID: <5supop$an9@news.itfs.nsk.su> References: <199708140439.WAA26525@Ilsa.StevesCafe.com> Sender: owner-freebsd-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Steve Passe wrote: > From my first look at the source I concluded that all the '-' opts would > have to be first as getopts bails out on the first non '-' string found. > However, closer examination shows that indeed it goes back for additional > passes to deal with this issue. So there is a simpler fix that I will commit > in a few minutes. Unfortunally (due to my not so "precise" description of a problem ;-) your "sipler fix" is unsufficient. Second case in "How-To-Repeat" section of my PR must be: 2) setenv MAKEFLAGS "-j12" make all will set "compat mode", whereas setenv MAKEFLAGS "" make -j12 all will work in "parallel" mode. This is definitely a bug because all other '-' flags sets corresponding variables independetly of their source - form MAKEFLAGS environment variable or from command line arguments. So I propose to commit my original fix and close this PR, or I can send other PR with new patch (which will be mostly the same as you only shift the block of lines in your patch). N.Dudorov