Re: manual / copy symlinks

[email protected]
Newsgroups gmane.comp.sysutils.cfengine.bugs
Message-ID <[email protected]>
> Can you tell me where it says that symbolic links are copied as files?

"[copy: section]
symlink
    This option may be repeated a number of times to specify the names of files, or wildcards which match files which are to be symbolically linked instead of copied."

This leads me to think that if I don't specify 'symlink', then files (including links) would be copied as files (like a bare 'cp').

My impression was confirmed by :
"This [linktype] only applies if the file is linked rather than copied because it matches a pattern set by symlink."

My experience is :
- the default behavior of 'copy:' is to copy links as links (which is not so intuitive, neither very explicit in the documentation - but I understand this can be a very useful feature)
- so if I want to copy links as files, I need to set 'linktype'
- ok but the documentation says "'linktype' is related to 'symlink'"
- which is not the case because I didn't set 'symlink', nor 'linkcopies'


> 3) The order of options seems to matter :

Is there a constraint or limit in the option part of copy: ?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.