LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Quick question on curl and tar (https://www.linuxquestions.org/questions/linux-general-1/quick-question-on-curl-and-tar-548743/)

hbinded 04-24-2007 09:25 PM

Quick question on curl and tar
 
I sometimes do this;
Code:

curl http://downloads.sourceforge.net/foo-bar.tar.bz2 | (tar -xjvf -)
Does that corrupt the source code or do anything "bad" ?
After that, I cd into the "foo-bar" folder and do this again (if there is a patch);
Code:

curl ftp://some-ftp.net/foobar/foo-bar-fixes-123.patch | (patch -Np1 -i -)
So far this hasn't brought up any errors while compiling. Is this ok?

Thanks

osor 04-24-2007 09:28 PM

Why would it do anything “bad”? Looks perfectly healthy to me. You might want to store as a temporary file and do an integrity check, however.

hbinded 04-24-2007 09:38 PM

thanks for the speedy reply. Just did a quick check of a directory using my method against the one from the source tarball and "diff -Naur" finds no differences. Thanks!:)


All times are GMT -5. The time now is 04:34 PM.