Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Apr 2009 08:56:13 -0500
From:      Scot Hetzel <swhetzel@gmail.com>
To:        Xin LI <delphij@delphij.net>
Cc:        Dominic Fandrey <kamikaze@bsdforen.de>, freebsd-stable@freebsd.org
Subject:   Re: diff regression
Message-ID:  <790a9fff0904110656m8505444gc25152129d63ef48@mail.gmail.com>
In-Reply-To: <49E09B9E.2010002@delphij.net>
References:  <200904091819.n39IJjDb027358@freefall.freebsd.org> <49E083AD.5030608@bsdforen.de> <49E09045.30904@delphij.net> <49E09258.1040103@bsdforen.de> <49E09B9E.2010002@delphij.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 4/11/09, Xin LI <delphij@delphij.net> wrote:
> |> | It used to say:
> |> |        -P     When comparing directories, if a file appears only in
> |> the second
> |> |           directory of the two, treat it  as  present  but    empty
> |> in  the
> |> |           other.
> |> |
> |> | Now it's gone. Regression?
> |>
> |> What's wrong with -N?
> |
> | Nothing, I just didn't know about -N.
>
> I'm not very sure, are the two option functionally same?

According to the diff.1 man page

 -N (--new-file)

Treat absent files as empty

--unidirectional-new-file (-P)

Treat absent first files as empty

So it would seem the two options are different.

Scot



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0904110656m8505444gc25152129d63ef48>