From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: pre-push signature hook error reporting [was Re: [PATCH v6] gnu: python-sphinx: Update to 1.4.8.] Date: Tue, 17 Jan 2017 14:44:25 -0500 Message-ID: <20170117194425.GA7178@jasmine> References: <20170105161431.9803-1-dannym@scratchpost.org> <878tqpjw93.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> <8760lj5eb6.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> <20170113152400.GA24322@jasmine> <20170117031414.GB23513@jasmine> <20170117123424.714a23b5@scratchpost.org> <587E147D.2000203@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTZgF-0002nC-9J for guix-devel@gnu.org; Tue, 17 Jan 2017 14:44:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTZgB-0002Wm-AS for guix-devel@gnu.org; Tue, 17 Jan 2017 14:44:31 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:43099) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cTZgB-0002Wd-6h for guix-devel@gnu.org; Tue, 17 Jan 2017 14:44:27 -0500 Content-Disposition: inline In-Reply-To: <587E147D.2000203@crazy-compilers.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Hartmut Goebel Cc: guix-devel On Tue, Jan 17, 2017 at 01:56:29PM +0100, Hartmut Goebel wrote: > Am 17.01.2017 um 12:34 schrieb Danny Milosavljevic: > > For minimal improvement (I don't even think it's measureable), try > > `git rev-list HEAD` (backquotes) - it prevents having to spawn a > > subshell. > > Huh? I doubt this. The bash manual, section "Command Substitution" does > not distinguish between these both, as far as I understand it. The POSIX shell command language specification says that: "The shell shall expand the command substitution by executing command in a subshell environment (see Shell Execution Environment) and replacing the command substitution (the text of command plus the enclosing "$()" or backquotes) with the standard output of the command, removing sequences of one or more s at the end of the substitution." http://pubs.opengroup.org/onlinepubs/007904875/utilities/xcu_chap02.html#tag_02_06_03 Maybe it's faster, maybe not, but I think my benchmark was misinterpreted...