Skip Menu |

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

Report information
The Basics
Id: 29154
Status: rejected
Priority: 0/
Queue: Archive-Tar

People
Owner: Nobody in particular
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.34
Fixed in: (no value)



Subject: ptar does not allows wilcards in 'FILE'
ptar -c -v -z -f a.tar.gz *.txt returns Cowardly refusing to create empty archive! .txt files exist I suppose that this code is incorrect find( sub { push @files, $File::Find::name; print $File::Find::name.$/ if $verbose }, @ARGV ); File::Find::find second parameter is list of directories. ActiveState perl v5.8.8 built for MSWin32-x86-multi-thread Binary build 820 -- Alexandr Ciornii, http://chorny.net
Subject: Re: [rt.cpan.org #29154] ptar does not allows wilcards in 'FILE'
Date: Tue, 4 Sep 2007 13:30:14 +0200
To: bug-Archive-Tar [...] rt.cpan.org
From: "Jos I. Boumans" <kane [...] cpan.org>
Hi Alexandr, On 04 Sep 2007, at 13:01, Alexandr Ciornii via RT wrote: Show quoted text
> ptar -c -v -z -f a.tar.gz *.txt > returns > Cowardly refusing to create empty archive! > > .txt files exist > > I suppose that this code is incorrect > find( sub { push @files, $File::Find::name; > print $File::Find::name.$/ if $verbose }, @ARGV ); > > File::Find::find second parameter is list of directories. > > ActiveState perl v5.8.8 built for MSWin32-x86-multi-thread > Binary build 820
* expansion is done by your shell, perl will never see the '*' passed, as by then it's already expanded. To see what's actually going on, try changing the 'ptar' command to 'echo *.txt' and see what is returned. Good luck, Jos