Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

RE: Tarball Cleaner

by Anonymous Monk
on Feb 17, 2000 at 20:50 UTC ( #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
Node Status?
node history
Node Type: note [id://3616]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2020-06-03 13:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (23 votes). Check out past polls.

    Notices?