Re: zdiff problem

2009-05-18 Thread DJ Lucas
Bryan Kadzban wrote: > (Does that actually help? :-) ) > LOL I started to do the same, and then I read what would have been posted about half way through, and said the hell with it. -- DJ Lucas -- This message has been scanned for viruses and dangerous content, and is believed to be clean

Re: zdiff problem

2009-05-17 Thread Bryan Kadzban
Bruce Dubbs wrote: > Bryan Kadzban wrote: >> Sheesh, that's complicated! > > Yes, it's bad. Earlier they have: > > for file > do >test "X$file" = X- || <"$file" || exit 2 > done > > but file is never defined, so this always fails. It might be for another > shell > or architecture, but

Re: zdiff problem

2009-05-17 Thread Bruce Dubbs
Bryan Kadzban wrote: > Bruce Dubbs wrote: >> The problem code looks like: >> >> gzip_status=$( >>exec 4>&1 >>(gzip -cdfq -- "$1" 4>&-; echo $? >&4) 3>&- | >> ( (gzip -cdfq -- "$2" 4>&-; echo $? >&4) 3>&- 5<&- > eval "$cmp" /dev/fd/5 -) 5<&0 >> ) > > Sheesh, that's complica

Re: zdiff problem

2009-05-17 Thread Bruce Dubbs
Dan Nicholson wrote: > On Sun, May 17, 2009 at 6:49 PM, Bruce Dubbs wrote: >> I'm trying to address ticket #2315 that says zdiff doesn't work. I confirmed >> this by creating two files with a one line difference and compressing them: >> >> gzip file1 >> gzip file2 >> >> But 'zdiff file1.gz file2.

Re: zdiff problem

2009-05-17 Thread Bryan Kadzban
Bruce Dubbs wrote: > The problem code looks like: > > gzip_status=$( >exec 4>&1 >(gzip -cdfq -- "$1" 4>&-; echo $? >&4) 3>&- | > ( (gzip -cdfq -- "$2" 4>&-; echo $? >&4) 3>&- 5<&- eval "$cmp" /dev/fd/5 -) 5<&0 > ) Sheesh, that's complicated! Let's see if I can decipher.

zdiff problem

2009-05-17 Thread Bruce Dubbs
I'm trying to address ticket #2315 that says zdiff doesn't work. I confirmed this by creating two files with a one line difference and compressing them: gzip file1 gzip file2 But 'zdiff file1.gz file2.gz' gives no output. Older versions of the script work properly. The code in the script is

Re: zdiff problem

2009-05-17 Thread Dan Nicholson
On Sun, May 17, 2009 at 6:49 PM, Bruce Dubbs wrote: > I'm trying to address ticket #2315 that says zdiff doesn't work.  I confirmed > this by creating two files with a one line difference and compressing them: > > gzip file1 > gzip file2 > > But 'zdiff file1.gz file2.gz' gives no output.  Older ve