Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1420533imj; Sun, 10 Feb 2019 01:41:11 -0800 (PST) X-Google-Smtp-Source: AHgI3IaxpmcEFAkOV1hSOJtDj+b0zaZam/4BqP8zY9DvYNlx9gMbx0cSCKfeyG/FfevaLCbAoWdj X-Received: by 2002:a17:902:2a26:: with SMTP id i35mr28481713plb.321.1549791671866; Sun, 10 Feb 2019 01:41:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549791671; cv=none; d=google.com; s=arc-20160816; b=EZNvHQ6lXbUUshMbmjCHzjr88GAgTZxxJVlLDDKOjJ0PN0kZCLrG9D2cHfiILDegCR xhfXMRraR5QPEeIQ69fL59+Ua8P5RtAti0w6fEKbDfB6FUtbaSUsNrs2CuAlXFm71zHM ikiV6cMvc/eoTyOG//YSTwf67JAfcfAAwFUs2IwnbJ1XtqVueTg7rK4+U4BLaB6Gc4sg WhNlHeQY/6s+R79ipEq9LSj3diYWoaRxdpJfqrW9vUprR9iXOYsM6702Rr56+m07O9fA PLQ+xUtBF+EtQy6avUS6vRwUhdCa9+fWIe06XNsdyVhnT1vYKQGkEB19KF9h0sG/fZO1 dolw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=QhL/MtZ7FNVilzUSFyRzk8ARVHNvfXD5E5neJEnca94=; b=W9IBUnHNCc/TGyc2wVt8iIr1PoBY8XDp5UcPRlpwHOKV3flvLAURvHMjPNQO87uBDw +0Eca73pk0HGP2wIjMHbQcoWPm8glTffRbGs/XCk9UKKSW2o9Yziomhb6PcSCehNAJp1 8GVgtY6qK4d+8Zuy6kkTO5FNKXWF2mk41ZuaXEWise8AzA7wpnb46xsuMUk9XaHyw2Hi qTudbXjQBPkqhqQ6r/gXSUWx3mPIvysyGUGPulIMIklpUGXe5AS8zlsCjjwp9x560oId W7+ktodJbixgaeXXFM19mzBmRHJnc6i8hADAu69cUH09ag0pQbb4rSOQNh9cTj3ftDw8 8qcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 86si6709875pfl.46.2019.02.10.01.40.53; Sun, 10 Feb 2019 01:41:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726101AbfBJJkt (ORCPT + 99 others); Sun, 10 Feb 2019 04:40:49 -0500 Received: from bsmtp7.bon.at ([213.33.87.19]:49699 "EHLO bsmtp7.bon.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725948AbfBJJkt (ORCPT ); Sun, 10 Feb 2019 04:40:49 -0500 Received: from dx.site (unknown [93.83.142.38]) by bsmtp7.bon.at (Postfix) with ESMTPSA id 43y3nV3Sv7z5tlF; Sun, 10 Feb 2019 10:40:46 +0100 (CET) Received: from [IPv6:::1] (localhost [IPv6:::1]) by dx.site (Postfix) with ESMTP id C56CE144; Sun, 10 Feb 2019 10:40:45 +0100 (CET) Subject: Re: [Breakage] Git v2.21.0-rc0 - t5318 (NonStop) To: Jeff King Cc: "Randall S. Becker" , "'brian m. carlson'" , 'Junio C Hamano' , git@vger.kernel.org, 'Linux Kernel' , git-packagers@googlegroups.com References: <002501d4bfde$b26e6050$174b20f0$@nexbridge.com> <20190208191519.GF27673@sigill.intra.peff.net> <002b01d4bfe4$2d617f40$88247dc0$@nexbridge.com> <20190208193157.GA30952@sigill.intra.peff.net> <20190208220714.GG11927@genre.crustytoothpaste.net> <005901d4bffb$6d0c34c0$47249e40$@nexbridge.com> <20190208223512.GA2135@sigill.intra.peff.net> <006601d4c001$2de3a160$89aae420$@nexbridge.com> <20190209042456.GB18286@sigill.intra.peff.net> <38f594ed-0787-aeb5-d34f-2f4775243eb7@kdbg.org> <20190209232928.GA7135@sigill.intra.peff.net> From: Johannes Sixt Message-ID: Date: Sun, 10 Feb 2019 10:40:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20190209232928.GA7135@sigill.intra.peff.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 10.02.19 um 00:29 schrieb Jeff King: > On Sat, Feb 09, 2019 at 09:39:43AM +0100, Johannes Sixt wrote: >> dd of="$objdir/info/commit-graph" bs=1 seek="$zero_pos" count=0 && >> - dd if=/dev/zero of="$objdir/info/commit-graph" bs=1 seek="$zero_pos" count=$(($orig_size - $zero_pos)) && >> + printf "%0*d" $(($orig_size - $zero_pos)) 0 | tr 0 '\0' | >> + dd of="$objdir/info/commit-graph" bs=1 seek="$zero_pos" && > > Using stdin instead of the tmpfile is nice, and shouldn't have any > problems. I do think your printf suggestion looks nice, but I wondered > if it might run into portability issues (not because of anything in > particular, but I often find that the more clever a shell solution, the > more likely we run into obscure problems). > > But if it works everywhere, that's fine by me. Unfortunately, it does not work as intended: the printf solution cannot print nothing, but that should be the case in all but one of the tests. -- Hannes