This commit is contained in:
committed by
Git OBS Bridge
parent
439897d4d8
commit
014ff1d35d
24
zdiff.diff
Normal file
24
zdiff.diff
Normal file
@@ -0,0 +1,24 @@
|
||||
--- zdiff.in
|
||||
+++ zdiff.in
|
||||
@@ -101,15 +101,17 @@ elif test $# -eq 2; then
|
||||
5<&0
|
||||
then
|
||||
gzip_status=$(
|
||||
- exec 4>&1
|
||||
- (gzip -cdfq -- "$1" 4>&-; echo $? >&4) 3>&- |
|
||||
- ( (gzip -cdfq -- "$2" 4>&-; echo $? >&4) 3>&- 5<&- </dev/null |
|
||||
- eval "$cmp" /dev/fd/5 -) 5<&0
|
||||
+ exec 4>&1 6<&0
|
||||
+ (gzip -cdfq -- "$1" 4>&-; echo $? >&4) 3>&- 6<&- |
|
||||
+ ( (gzip -cdfq -- "$2" 4>&- 0<&6 6<&-; echo $? >&4) 3>&- 5<&- </dev/null |
|
||||
+ eval "$cmp" /dev/fd/5 - >&3) 5<&0
|
||||
)
|
||||
+ cmp_status=$?
|
||||
case $gzip_status in
|
||||
*[1-9]*) gzip_status=1;;
|
||||
*) gzip_status=0;;
|
||||
esac
|
||||
+ (exit $cmp_status)
|
||||
else
|
||||
F=`expr "/$2" : '.*/\(.*\)[-.][zZtga]*$'` || F=$prog
|
||||
tmp=
|
Reference in New Issue
Block a user