Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2051898imj; Fri, 8 Feb 2019 11:43:21 -0800 (PST) X-Google-Smtp-Source: AHgI3IarCicaMf/GFPUon9glYVCDzzbs5BGqLNAcpmgvpr10sHt5tvCTkIdH7524V3PzRqj0Y478 X-Received: by 2002:a17:902:147:: with SMTP id 65mr24505197plb.116.1549655001470; Fri, 08 Feb 2019 11:43:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549655001; cv=none; d=google.com; s=arc-20160816; b=stjs2x4IMzacuMsJKyKmGHvpmELcva4/RxLdzPTmTLVp7JZoRPaUWXtvYyqhvObzoJ t83b/9XmflkxoEPd+SbVXemZ2Bx+2es7KV9gUSFVvvdEk7wi263oOZ5isJIC5StYdvaS tD7WcXGccOjoRB5CjPs8o2h6P6wvfpczl6aU0lRLqHNOI1lgaZk25/ucDxeUwBnjYI46 N0d12IRBaia2ySWMAlZlBNJ1GlvfRzAMDYw3Q9yDA16rax16owz4A8p3wEceN9/7tLez P6k+AtHtdK65+Ui0C7rs/ZJ///Y1+SNWj9vN+/wSoBtHq4GqYMw3j0yeVAGtdPdNXcou jyiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from; bh=wAR1wTLjB3KWd1Y4Yls3Sid4QMOx3183SfWmYhYG1B4=; b=Pn0bZQ2rpME2MEwMXg0/PjEiUKUrGzyeibj4GVzHFe8HDhAKkkeRoKrAJfnagYCMDN Rg+9q0cznUSlTCtjgBtN36PRMACHhJtABrFKVzom3qanAGjW1klW34vuWkjQV08AP7BX 1wiYXqFL5LYkh7YyDpK6zEvtMfITzi0DimMnSfS8ec7yKBADYjwtshF40Ep5MMMg8x3Q tbislrf0vvu9b6uT1efj/xGEQ/qODbst+tj1Fz8FzIzh9n3AIKUADwN+K4O67QReG/ls kl5Xl+a8NHLupqGIGAuUzUvMjWasY2HyEbzRIOW1r/2f0x/C8XAuktP5jZCTjpGWm44r tR1Q== 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 e19si2835291pgb.51.2019.02.08.11.43.05; Fri, 08 Feb 2019 11:43:21 -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 S1727686AbfBHT0e convert rfc822-to-8bit (ORCPT + 99 others); Fri, 8 Feb 2019 14:26:34 -0500 Received: from elephants.elehost.com ([216.66.27.132]:52912 "EHLO elephants.elehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727236AbfBHT0e (ORCPT ); Fri, 8 Feb 2019 14:26:34 -0500 X-Virus-Scanned: amavisd-new at elehost.com Received: from gnash (CPE00fc8d49d843-CM00fc8d49d840.cpe.net.cable.rogers.com [99.229.179.249]) (authenticated bits=0) by elephants.elehost.com (8.15.2/8.15.2) with ESMTPSA id x18JQOHo088343 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 8 Feb 2019 14:26:25 -0500 (EST) (envelope-from rsbecker@nexbridge.com) From: "Randall S. Becker" To: "'Jeff King'" Cc: "'Junio C Hamano'" , , "'Linux Kernel'" , References: <000f01d4bf9e$a508eab0$ef1ac010$@nexbridge.com> <20190208165052.GC23461@sigill.intra.peff.net> <001101d4bfd6$b9430230$2bc90690$@nexbridge.com> <20190208180321.GB27673@sigill.intra.peff.net> <002501d4bfde$b26e6050$174b20f0$@nexbridge.com> <20190208191519.GF27673@sigill.intra.peff.net> In-Reply-To: <20190208191519.GF27673@sigill.intra.peff.net> Subject: RE: [Breakage] Git v2.21.0-rc0 - t5318 (NonStop) Date: Fri, 8 Feb 2019 14:26:17 -0500 Message-ID: <002b01d4bfe4$2d617f40$88247dc0$@nexbridge.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQE5rFddSF2c8coPnbFiKb9P+8bdAwH0igmPAiNgz5YBSIw84wKJiaU9Aj0+V9OmuzTBEA== Content-Language: en-ca Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On February 8, 2019 14:15, Jeff King wrote: > On Fri, Feb 08, 2019 at 01:47:04PM -0500, Randall S. Becker wrote: > > > > Though I suspect we may be able to just find a solution that works > > > everywhere, without having two different implementations. If we know > > > we need $count bytes for dd, we could probably just generate a file > > > with that many NULs in it. > > > > For this, we could use truncate -s count file instead of dd to get a > > fixed size file of nulls. This would remove the need for /dev/zero in > > t5318 (the patch below probably will wrap badly in my mailer so I can > > submit a real patch separately. > > I don't think "truncate" is portable, though. It is available AFAIK on Linux, POSIX, and Windows under Cygwin. That's more than /dev/zero has anyway. I have the patch ready if you want it. > > > Other cases don't seem to actually care that they're getting NULs, > > > and are just redirecting stdin from /dev/zero to get an infinite > > > amount of input. They could probably use "yes" for that. > > > > What about reading from /dev/null? > > That would yield zero bytes, not an infinite number of them. So something like: yes | tr 'y' '\0' | stuff?