[Sorry for the duplicate, the first went to submit@ instead of 688814@.] Eric Cooper <e...@cooper-siegel.org> wrote:
> It is very easy to overwrite a desired input file when doing, i.e., > $ pdfunite page*.pdf > instead of > $ pdfunite page*.pdf new-file.pdf > > Using something like "-o output-file" would prevent this. I just got bitten by this myself, using pdfunite 0.24.5 (from poppler-utils 0.24.5-2ubuntu4.2). This could be fixed in a backward-compatible way by supporting two syntaxes: # Explicit: pdfunite -o outfile infile... # Error if outfile already exists: pdfunite infile... outfile AMC