Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: OpenBSD's patch

by betterworld (Curate)
on May 26, 2014 at 13:32 UTC ( #1087434=note: print w/replies, xml ) Need Help??

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".

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1087434]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2022-12-07 10:41 GMT
Find Nodes?
    Voting Booth?

    No recent polls found