From owner-svn-src-all@FreeBSD.ORG Fri May 17 23:13:59 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CEBEAACB; Fri, 17 May 2013 23:13:59 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (unknown [IPv6:2001:610:1108:5012::107]) by mx1.freebsd.org (Postfix) with ESMTP id 95D342FB; Fri, 17 May 2013 23:13:59 +0000 (UTC) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mx1.stack.nl (Postfix) with ESMTP id D10B212013C; Sat, 18 May 2013 01:13:43 +0200 (CEST) Received: by snail.stack.nl (Postfix, from userid 1677) id B3FBB28493; Sat, 18 May 2013 01:13:43 +0200 (CEST) Date: Sat, 18 May 2013 01:13:43 +0200 From: Jilles Tjoelker To: "Simon J. Gerraty" Subject: Re: svn commit: r250699 - in head: share/mk usr.bin/make Message-ID: <20130517231343.GC89969@stack.nl> References: <201305161528.r4GFSc5t094460@svn.freebsd.org> <5196745E.7040905@FreeBSD.org> <20130517193906.1675358097@chaos.jnpr.net> <5196A250.8030305@FreeBSD.org> <20130517222810.59BDB58097@chaos.jnpr.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130517222810.59BDB58097@chaos.jnpr.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-head@freebsd.org, Tijl Coosemans , src-committers@freebsd.org, svn-src-all@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 May 2013 23:13:59 -0000 On Fri, May 17, 2013 at 03:28:10PM -0700, Simon J. Gerraty wrote: > On Fri, 17 May 2013 23:34:08 +0200, Tijl Coosemans writes: > >When the output of /usr/local/libexec/portconf is empty make > >warns about it: > Yes. This is to avoid accidents. > If you *know* that no output is a valid result, you can add '; echo' to > the end of the command to suppress the warning. > >make: "/etc/make.conf" line 115: warning: Couldn't read shell's output fo= > >r > >"/usr/local/libexec/portconf" Note that adding '; echo' will result in an additional fork() or vfork() call. If -c /usr/local/libexec/portconf is given, FreeBSD sh execs portconf. If there is an echo command after it, sh will have to (v)fork. In NetBSD, this is not a concern because NetBSD sh (v)forks in either case. Placing the echo before the external command will let FreeBSD sh avoid the fork as well, but some common other shells (bash, recent mksh) will not fork for -c external but will fork for -c builtin;external. -- Jilles Tjoelker