Manual says "diff -uR" but macOS diff doesn't support "-R"

Bill Cole macportsusers-20171215 at billmail.scconsult.com
Sun Aug 11 19:44:26 UTC 2019


On 11 Aug 2019, at 14:52, Gerben Wierda wrote:

> Busy adopting nsd (currently no maintainer). I have created a Portfile 
> for the last version and added Startupitem statements. Everything 
> works here.
>
> The manual says:
>
> diff -uR $(port dir $portname) . > change-$portname-maintainer.diff
>
> However, macOS Mojave’s diff doesn’t understand that. -R is an 
> invalid option.

It's not valid in any common variety of diff.

> I’m not going to guess here, so what is it supposed to be?

I feel quite safe guessing that since the argument is a directory, it's 
a simple capitalization error, and should be 'r' instead of 'R'

-- 
Bill Cole
bill at scconsult.com or billcole at apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)


More information about the macports-users mailing list