bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

symlinks and targets are not the same file


From: Karl Berry
Subject: symlinks and targets are not the same file
Date: Sat, 5 Dec 2009 01:51:36 GMT

[coreutils 8.1, gnu/linux]

$ touch foo 
$ ln -s foo lnk
$ \cp --no-dereference foo lnk
cp: `foo' and `lnk' are the same file

Well, no, they're not.
I expected the file foo to overwrite the symlink lnk.
I can imagine that error without --no-dereference, but with it ... ?

Thanks,
k




reply via email to

[Prev in Thread] Current Thread [Next in Thread]