[Intel-gfx] mmotm 2019-07-04-15-01 uploaded (gpu/drm/i915/oa/)

Andrew Morton akpm at linux-foundation.org
Fri Jul 5 05:29:06 UTC 2019


On Thu, 04 Jul 2019 22:22:41 -0700 Joe Perches <joe at perches.com> 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.




More information about the Intel-gfx mailing list