UNIXgod said:Are you trying to output diff to a file?
% diff -u file alteredfile > newfile.patch
phoenix said:Have you tried redirecting both stdout and stderr?
For sh-based shells:
# patch -p0 -i patchfile > output.txt 2>$1
This redirection syntax depends on your shell.NOYB said:[cmd=:]patch -p0 -i patchfile > output.txt 2>$1
Ambiguous output redirect.
[/cmd]
% patch -p0 -i patchfile > output.txt 2>[b]&[/b]1
jalla said:Code:patch < x.diff >& patch.log