[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Behaviour of cp with symlinks changed
From: |
Ignacio Fernández Galván |
Subject: |
Re: Behaviour of cp with symlinks changed |
Date: |
Wed, 19 Dec 2007 20:32:22 +0000 (GMT) |
--- Jim Meyering <address@hidden> wrote:
> Copying through a destination symlink is fundamentally risky,
> so I've changed cp not to do it anymore.
OK, thanks, I see.
> Best is just not to do that anymore. However, if it's something
> you cannot easily avoid, you can do this instead:
>
> $ cp -p link1 $(readlink -f link2)
Well, the problem is I don't do it, but it is sort of hardcoded in some
other program I use, which was failing and I tracked the error down to
this cp "feature". I will inform the maintainers of this other program.
However, it might be a good idea to have some option to force this
risky behaviour, maybe with --force ?
Thanks again
Ignacio
__________________________________________________________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com