Ulisses Alonso Camaro wrote:
> some time ago I asked about cp -a behaviour, I thought that it was ok for
> backup but...
> 
> if you have two files hard-linked cp -a will copy two files not just
> one... 

Doesn't appear to be true:

[EMAIL PROTECTED]:/tmp/scratch/a> ls -l
total 3
-rw-rw-r--   3 joey     joey            3 May  3 00:59 bar
-rw-rw-r--   3 joey     joey            3 May  3 00:59 baz
-rw-rw-r--   3 joey     joey            3 May  3 00:59 foo
[EMAIL PROTECTED]:/tmp/scratch/a> cd ..
[EMAIL PROTECTED]:/tmp/scratch> ls
a/
[EMAIL PROTECTED]:/tmp/scratch> cp -a a b
[EMAIL PROTECTED]:/tmp/scratch> cd b
[EMAIL PROTECTED]:/tmp/scratch/b> ls -l
total 3
-rw-rw-r--   3 joey     joey            3 May  3 00:59 bar
-rw-rw-r--   3 joey     joey            3 May  3 00:59 baz
-rw-rw-r--   3 joey     joey            3 May  3 00:59 foo
             ^

-- 
see shy jo


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to