Re: tar -cvfX save.tar foo ./dirtosave/..

From: Peter T. Breuer (ptb_at_it.uc3m.es)
Date: 08/26/03


Date: Tue, 26 Aug 2003 23:23:53 +0200

In comp.os.linux.misc Logan Shaw <lshaw-usenet@austin.rr.com> wrote:
> Peter T. Breuer wrote:
>> OTOH, starring up the source directory results in an archive that gtar
>> hates. So star produces incompatible archives.

> Why yes, this is the point that Joerg has been trying to make. The two
> programs (GNU tar and star) use incompatible archive formats. So, the
> question becomes who defines the standards. Is it POSIX, or is it GNU?

It's posix. I didn't try with POSIXLY_CORRECT set, however. If gnu tar
does not read a posix -compliant archive, then that would be an
interesting situation.

(tar.info for gnu tar).

 POSIX Compliance
 ================

 We make some of our recommendations throughout this book for one reason
 in addition to what we think of as "good sense". The main additional
 reason for a recommendation is to be compliant with the POSIX
 standards. If you set the shell environment variable
 `POSIXLY_CORRECT', GNU `tar' will force you to adhere to these
 standards. Therefore, if this variable is set and you violate one of
 the POSIX standards in the way you phrase a command, for example, GNU
 `tar' will not allow the command and will signal an error message. You
 would then have to reorder the options or rephrase the command to
 comply with the POSIX standards.

 There is a chance in the future that, if you set this environment
 variable, your archives will be forced to comply with POSIX standards,
 also. No GNU `tar' extensions will be allowed.

Peter



Relevant Pages

  • Re: tar -cvfX save.tar foo ./dirtosave/..
    ... So star produces incompatible archives. ... Is it POSIX, or is it GNU? ... the POSIX standards in the way you phrase a command, for example, GNU ...
    (comp.os.linux.misc)
  • Re: tar -cvfX save.tar foo ./dirtosave/..
    ... >>my time counting characters and otherwise imagining abstractions given ... GNU `tar' should be able to ... But, being strictly POSIX, the limit was still 100 characters. ...
    (comp.os.linux.misc)
  • Re: tar -cvfX save.tar foo ./dirtosave/..
    ... >>my time counting characters and otherwise imagining abstractions given ... GNU `tar' should be able to ... But, being strictly POSIX, the limit was still 100 characters. ...
    (comp.unix.solaris)
  • Re: Request for Comments: libarchive, bsdtar
    ... Oddly, GNU tar does successfully and correctly extract the archive, ... The issue here is correct blocking for devices that require it. ... for clients of the library. ... > with archives. ...
    (freebsd-arch)
  • Re: Shellscripting: Wieder mal Dateinamen mit Leerzeichen
    ... >>> portabler als Posix. ... >> Ah, GNU ist fast überall, deswegen habe ich auch so viele XPG4 utilities ... Regel - siehe find, deswegen haben wir diesen Thread ja hehe), habe ich ... Next by Date: ...
    (de.comp.os.unix.shell)