Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

RE: Tarball Cleaner

by Anonymous Monk
on Feb 17, 2000 at 20:50 UTC ( [id://3616]=note: print w/replies, xml ) Need Help??


in reply to Tarball Cleaner

Some tarballs dont create new directories.
This can be bad news.

I recently did a rm -rf `tar tvfz blah.tgz` on a tarball that had contained ./ and had made a mess in the cwd

Luckily, the "v" saved me, as I assume rm -rf ./ would be pretty bad.

In my haste, I have not considered how your code would handle this, but it might be good to check.

Replies are listed 'Best First'.
Re: RE: Tarball Cleaner
by deprecated (Priest) on Jan 21, 2001 at 04:56 UTC
    Is there a reason Archive::Tar was not used in this case? I am working on a project with it (code to follow, maybe even this evening), and it seems pretty straightforward (if a little braindead), and doesnt require the use of `` and the like...

    update: that code is here.

    dep

    --
    i am not cool enough to have a signature.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://3616]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-16 23:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found