On Tue, 31 May 2011 12:39:15 +0000 (UTC), Stuart Henderson
<s...@spacehopper.org> wrote:
> On 2011-05-31, Marian Hettwer <m...@kernel32.de> wrote:
>>
>> bsdtar from the FreeBSD project supports --exclude too.
>> The OP could as well install gnu tar from packages. bsdtar doens't seem
>> to exist...
>>
>> At least that's what I do at work (Debian, Solaris, OpenBSD env).
>> It's a pain to walk around every nifty details of different unixes...
> 
> The other way you can do it is just use posix-specified options and
> not rely on vendor-specific extensions. But unfortunately many of the
> vendors (*cough*gnu*cough*) don't make it clear which options are
> standard and which are extensions... And, sadly, even some of the
> BSD-derived OS have replaced a bunch of their standard tools with GNU.

You are right. One should rely on posix standards.
However, reality most often proved that there will be GNU-ism all over
the place.
Time for a clean up task? Maybe. Going the easier road of just
installing some gnu tools, why not?

Talking about BSD specifics. I really like the possibility on my
FreeBSD box with bsdtar to not specify -z or -j depending on the
archived tar file. Instead, bsdtar just guesses for me what it'll be.
"tar -xvf foo.tar.gz" or "tar -xvf foo.tar.bz2" is all the same to me.
However, I really try hard not to get the hang of it. This would never
work with any other tar I encountered...
And obviously I wouldn't to this in a shellscript ;)

Cheers,
Marian

Reply via email to