Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2923183ybi; Thu, 4 Jul 2019 22:29:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6/5uAiBvMdoiDQU4PKO8Ut/ym96n9weZQjAQ57mLGi+1sIV4wsT8JTm5vDbEFIxs/L545 X-Received: by 2002:a17:902:be12:: with SMTP id r18mr2445746pls.341.1562304584274; Thu, 04 Jul 2019 22:29:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562304584; cv=none; d=google.com; s=arc-20160816; b=RY/ftdJ8lHv2qidxC+YURM/MTdXuMQPU+I81ZbMks9S5gCVdmQ9Mny9tSwnQ0BVXZG hezDSHhs6qSVDsu13Lci6WiTjLCSt/G30o+OUB7ICVx6vlmE2RpvZZJ+epuuyS+6uBQV vdv83pw1m4T/ybjjyuVtv9BcKaLvOe9H7BrfohyiZiBdw/kndltXqkXQe1yPnpAKtIMX x/M1yyyZbNh8NJZxeXc9Qrnjxk6Z0Y/0Q2IucSeML2EwKIL0aq1XbqdaxJIYYyjSEEJ8 otnqlS6Gu1zWro4uR1DUxqtZmrWa1kAxA+fIliLNaV+ajOluTYUumfwxAn+yh1UtbxZb ZBsA== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=qNZyoCrDt9Pu/FvinUTVMXpvuBiR35dmsH196/cAnJA=; b=fNB+gNit8LO2QZC2dYPvf5UccDENgz0bUYCi2IJpMpPYB4GKhFa+NNpf+j6r8gnXwZ X/UEfObo2o+7FCk+7mt3IWf8stilly5zHAFOXuXJQLnih/wSMbV8slMOOy16kONZZZMi NwH4YqFWc5fPAvXt005wr08E9M8XFs+3CWQ89WqQO5kQZ2K11EAOkz/HfZFy/Gs6F+cj 6H1ohbQVijPjO19rMu7BzWOujKQhQsjOg0AYyrm+EokP/25BLp6WL9iix4oORwvE+qtO i/xGfMWEjYf/J1i+ccJvP/TbHPu5eC0o1TPwYX08nxwpy4eEbV+sSNm6vE6BQdYeEYiw DZiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gpwsyMS6; 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 207si7740476pfu.258.2019.07.04.22.29.28; Thu, 04 Jul 2019 22:29:44 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=gpwsyMS6; 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 S1727440AbfGEF3J (ORCPT + 99 others); Fri, 5 Jul 2019 01:29:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:49358 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725772AbfGEF3I (ORCPT ); Fri, 5 Jul 2019 01:29:08 -0400 Received: from localhost.localdomain (c-73-223-200-170.hsd1.ca.comcast.net [73.223.200.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 111B621850; Fri, 5 Jul 2019 05:29:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562304547; bh=ku9aEp+wapV1jAtHr82zZH6REpuJWRVS+GCf+tHXR7Y=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=gpwsyMS6DRC1CwjjTw4nWYbfs5wE2bJ85FBSXW84XxfeYBs6quUOEtr8MLEJ6QcMZ 03jv6nY0lDeUSDRQOggVvU24ZcWC8z5wMyc53vkGgU4qbFnuhBeU8cBq+krJtoDFTV 5BAl2jqKEoiqIRjP7Qf7cwvYh0pBZRG2A96dQtGc= Date: Thu, 4 Jul 2019 22:29:06 -0700 From: Andrew Morton To: Joe Perches Cc: Stephen Rothwell , Masahiro Yamada , Randy Dunlap , Mark Brown , linux-fsdevel@vger.kernel.org, Linux Kernel Mailing List , linux-mm@kvack.org, Linux-Next Mailing List , mhocko@suse.cz, mm-commits@vger.kernel.org, Michal Wajdeczko , Daniel Vetter , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Intel Graphics , DRI , Chris Wilson Subject: Re: mmotm 2019-07-04-15-01 uploaded (gpu/drm/i915/oa/) Message-Id: <20190704222906.f817d02cb248561edd84a669@linux-foundation.org> In-Reply-To: <5f4680cce78573ecfbbdc0dfca489710581b966f.camel@perches.com> References: <20190704220152.1bF4q6uyw%akpm@linux-foundation.org> <80bf2204-558a-6d3f-c493-bf17b891fc8a@infradead.org> <20190705131435.58c2be19@canb.auug.org.au> <20190704220931.f1bd2462907901f9e7aca686@linux-foundation.org> <5f4680cce78573ecfbbdc0dfca489710581b966f.camel@perches.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 04 Jul 2019 22:22:41 -0700 Joe Perches wrote: > > So when comparing a zero-length file with a non-existent file, diff > > produces no output. > > Why use the -N option ? > > $ diff --help > [...] > -N, --new-file treat absent files as empty > > otherwise > > $ cd $(mktemp -d -p .) > $ touch x > $ diff -u x y > diff: y: No such file or directory Without -N diff fails and exits with an error. -N does what's desired as long as the non-missing file isn't empty.