git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Installation failure caused by CDPATH environment variable

From
Wincent Colaiuta <win@wincent.com>
Date
Jul 17, 2007, 19:07 UTC
Message-ID
<2D8FF91A-02B0-44AF-8B7C-5C46DD6AF352@wincent.com>
In-Reply-To
<7vhco2ancg.fsf@assigned-by-dhcp.cox.net>
El 17/7/2007, a las 20:37, Junio C Hamano escribió:
Show 17 quoted lines
> Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de> writes:
>
>> Junio C Hamano wrote:
>>> We could write it as "$(TAR) Ccf blt - ." if we can rely on the
>>> 'C' option, but I suspect it is a GNU extension.  Does anybody
>>> have POSIX.1 handy?
>> I don't have POSIX.1 handy, but on Solaris 10, you need to say:
>>
>> 	tar cf - -C blt .
>>
>> (That is, Solaris' tar has the 'C' option, which is quite a good
>> indication, that it's included in POSIX :-)
>
> Oh, I cannot resist ;-)
>
> Solaris has unlink(2) capable of removing a directory, but I do
> not think it is included in POSIX.
I'd say the answer is "no", "C" isn't in the POSIX tar specification.

The latest, Version 3, says "the Shell and Utilities volume of IEEE Std 1003.1-2001 no longer contains the tar utility" (<http:// www.opengroup.org/onlinepubs/009695399/basedefs/tar.h.html>).

And Version 2, which does contain tar, does not list "C" as an option (<http://www.opengroup.org/onlinepubs/7990989775/xcu/tar.html>).

In fact, the example they give for moving directory hierarchies is exactly this:

   (cd fromdir; tar cf - . ) | (cd todir; tar xf -)

Cheers, Wincent

Previous: Junio C HamanoNext: Uwe Kleine-König
Message 11 of 12 in “Installation failure caused by CDPATH environment variable”
  1. Wincent ColaiutaJul 11, 2007
  2. Johannes SchindelinJul 11, 2007
  3. David KastrupJul 12, 2007
  4. Junio C HamanoJul 12, 2007
  5. Wincent ColaiutaJul 12, 2007
  6. Johannes SchindelinJul 12, 2007
  7. Johannes SchindelinJul 12, 2007
  8. Junio C HamanoJul 11, 2007
  9. Uwe Kleine-KönigJul 17, 2007
  10. Junio C HamanoJul 17, 2007
  11. Wincent ColaiutaJul 17, 2007
  12. Uwe Kleine-KönigJul 17, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.