On Tue, 12 Feb 2008, Frank Lichtenheld wrote: > On Tue, Feb 12, 2008 at 12:39:21AM +0100, Soren Hansen wrote: > > On Tue, Feb 12, 2008 at 12:25:13AM +0100, Frank Lichtenheld wrote: > > Granted my perl-fu is not that strong, and looking at the documentation, > > I might have exaggerated the extent of this bug somewhat. > > > > > Could you please go into more detail what you tried to fix? > > > > The particular bug I was fixing was when called with "-c-", i.e. read > > the control file from stdin. From perldoc: > > > > In the 2-arguments (and 1-argument) form opening '-' opens STDIN > > and opening '>-' opens STDOUT. > > > > Without my patch, it's the 3-argument version of open, so opening "-" > > fails (as there is no such file). > > Ok, thanks. Now I understand :)
Even if we understand it, I don't think it's a change that we really want. The documentation doesn't mention the possibility of using "-" as filename for standard input and I'd rather that you fix the Ubuntu package that is doing that instead of changing dpkg. The precise point the 3 arg syntax is to be able to use weird filenames without encountering problems due to the various syntax of the open call. Cheers, -- Raphaël Hertzog Le best-seller français mis à jour pour Debian Etch : http://www.ouaza.com/livre/admin-debian/