http://qs1969.pair.com?node_id=1087434


in reply to OpenBSD's patch

I'd try searching for the string "--dry-run" in the output of "patch --help".

Both "--help" and "--dry-run" are probably GNU specific (GNU uses double dashes). On other systems, "patch --help" will give you error messages, but will never print "--dry-run".

By the way, according to the man page, OpenBSD's patch program is derived from the one authored by Larry Wall.

Replies are listed 'Best First'.
Re^2: OpenBSD's patch
by sedusedan (Monk) on May 28, 2014 at 05:46 UTC
    Good idea. I think I'll try this instead of coriac's suggestion of using `man patch` (I'm thinking Windows where there is no 'man' by default). I hope all patch support --help :-)
      I hope all patch support --help

      There are patch programs that don't support help. Again, I am very confident that if it supports "--dry-run", then it will also support "--help".