I am attempting to script diff and patch commands. Facing some warning like this if bzcat is used
# bzcat consolidated.patch.tar.bz2 | patch -d dev -p1
patch unexpectedly ends in middle of line
patch unexpectedly ends in middle of line
# echo $?
0
It there is no such warnings if patch is performed with decompressed file
# tar -xf consolidated.patch.tar.bz2
# patch -d dev -p1 < consolidated.patch
# echo $?
0
I did compare resultant folder but both approach but they are identical
# diff -aurN dev1 dev2 > res.diff
# stat res.diff
File: res.diff
Size: 0 Blocks: 0 IO Block: 4096 regular empty file