Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'BSD vs. SysV' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
BSD vs. SysV
Authored by: jordan.breeding on Nov 16, '05 08:45:10AM

As far as I can tell this is an issue between BSD and SysV versions of cp (and maybe some other utilities). On every BSD box I have used cp works the way it does in Darwin, which makes since. Solaris (SysV), Linux (GNU -- which is usually close to SysV), etc. all copy the directory is you use "dir" or "dir/", but copy the contents only when the argument is "dir/.". The SysV behavior makes more sense to me, but I have learned to just watch what I am doing on BSD systems.



[ Reply to This | # ]