patch: Only garbage was found in the patch input
问题 I produced a diff.txt file with the command (executed from ~): diff -r /full/path/to/directory/A /full/path/to/directory/B > diff.txt The generated diff file looks good. Now I run (always from ~) patch -p0 <diff.txt or I also tried: patch <diff.txt I would expect it to apply the changes to the files in /full/path/to/directory/A so that after the operation they will be identical to those in /full/path/to/directory/B But it only says: * Only garbage was found in the patch input. What am I