Bug#445309: output result to stdout

2007-10-04 Thread martin f krafft
Package: patch Version: 2.5.9-4 Severity: wishlist File: /usr/bin/patch $ … | patch -o- some/file patch: can't output patches to standard output (a) that warning should go to stderr and (b) there can't be a real reason for this. It should be trivial to add. -- System Information: Debian Rel

Bug#445309: output result to stdout

2007-10-04 Thread Christoph Berg
Re: martin f krafft 2007-10-04 <[EMAIL PROTECTED]> > $ … | patch -o- some/file > patch: can't output patches to standard output > > (a) that warning should go to stderr Only if -o is stdout. > (b) there can't be a real reason for this. It should be trivial to > add. Just tried it here, s.o

Bug#445309: output result to stdout

2007-10-04 Thread martin f krafft
also sprach Christoph Berg <[EMAIL PROTECTED]> [2007.10.04.2046 +0100]: > > (a) that warning should go to stderr > > Only if -o is stdout. uh, no. It's a warning. > > (b) there can't be a real reason for this. It should be trivial to > > add. > > Just tried it here, s.out is the -o file: > > 1

Bug#445309: output result to stdout

2007-10-04 Thread Christoph Berg
Re: martin f krafft 2007-10-04 <[EMAIL PROTECTED]> > also sprach Christoph Berg <[EMAIL PROTECTED]> [2007.10.04.2046 +0100]: > > > (a) that warning should go to stderr > > > > Only if -o is stdout. > > uh, no. It's a warning. Point taken. > I am not sure I understand. You tried it? So you have

Bug#445309: output result to stdout

2007-10-04 Thread martin f krafft
also sprach Christoph Berg <[EMAIL PROTECTED]> [2007.10.04.2322 +0100]: > I meant to say "patch uses lseek() on the output file, Can you imagine why? It *does* open() the file just before, so it's not reusing the filehandle, is it? -- .''`. martin f. krafft <[EMAIL PROTECTED]> : :' : proud