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

Re: [PATCH] Cogito documentation updates

From
Linus Torvalds <torvalds@osdl.org>
Date
Nov 23, 2005, 17:29 UTC
Message-ID
<Pine.LNX.4.64.0511230923131.13959@g5.osdl.org>
In-Reply-To
<8664qjph7d.fsf@blue.stonehenge.com>
On Wed, 23 Nov 2005, Randal L. Schwartz wrote:
> 
> Delete the -d switch, or explain to me why it is there, and let's work
> out a POSIX workaround.
It's
       -d:     same as --no-dereference --preserve=link
       --no-dereference
              never follow symbolic links
       --preserve[=ATTR_LIST]
              preserve   the   specified   attributes   (default:  mode,owner-
              ship,timestamps) and security contexts, if  possible  additional
              attributes: links, all

so it's basically making sure that the copy copies the _link_, not the file it points to.

I think you may have to use "cpio -p" instead of "cp" to be portable. Something like

	cpio -plmu $src $dst
might do it.
		Linus
Previous: Junio C HamanoNext: Petr Baudis
Message 7 of 9 in “Cogito documentation updates”
  1. Cogito documentation updatesJonas Fonseca, Nov 20, 2005
  2. Randal L. SchwartzNov 20, 2005
  3. Jonas FonsecaNov 23, 2005
  4. Randal L. SchwartzNov 23, 2005
  5. Andreas EricssonNov 23, 2005
  6. Junio C HamanoNov 23, 2005
  7. Linus TorvaldsNov 23, 2005
  8. Petr BaudisNov 27, 2005
  9. Cogito documentation updatesJonas Fonseca, Nov 26, 2005

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.