Skip Menu |

This queue is for tickets about the Archive-Tar CPAN distribution.

Report information
The Basics
Id: 37375
Status: resolved
Priority: 0/
Queue: Archive-Tar

People
Owner: Nobody in particular
Requestors: glenn.jackman [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.38
Fixed in: 1.38



Subject: ptar should allow '-' as an archive_file name (patch included)
Using '-' as a filename is very handy for using tar in pipes. contrived example: cat archive.tar | tar -xvf - This patch achieves that: $ diff ptar ptar.new 35a36,41 Show quoted text
> if ($file eq '-') { > use IO::Handle; > $file = IO::Handle->new(); > $file->fdopen(fileno(STDOUT),"w"); > } >
39a46,51 Show quoted text
> if ($file eq '-') { > use IO::Handle; > $file = IO::Handle->new(); > $file->fdopen(fileno(STDIN),"r"); > } >
From: glenn.jackman [...] gmail.com
I should add that the patch does not play well with -v
Thanks, applied and issue with -v solved.