tags:

views:

66

answers:

3

I'm trying to catch an output of bash patch command on a standard output, but I receive a "patch -o- some/file patch: can't output patches to standard output" warning. Tell me please, how I can make it properly? Maybe I'm stupid and the solution is really simple?

A: 
Dyno Fu
A: 

see here for some reference. Search google for more. otherwise, show how you execute the command

ghostdog74
+1  A: 

Hi,

There are more ways to do this: (1) use a temporary file, say temp.out to collect the patched file, cat it to the console and then delete it. A one liner for it would be:

patch fileToPatch patch.diff -o temp.out;cat temp.out;rm temp.out

(2) put the output directly to /dev/tty like this:

patch fileToPatch patch.diff -o /dev/tty
Salo