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

[FDclone-users:00331] Re: copying from/to a linked file



At Thu, 19 Aug 2004 23:03:13 +0900,
Takashi SHIRAI wrote:
> >  *BSD や GNU の cp(1) では stat して st_dev と st_ino が一致
> > していたらその旨を表示してコピーを避けるようになっていますが、
> > FDclone でも同様の処理にできないでしょうか。
> 
>  でも、これって同名ファイルが存在して敢えて「上書き」を選ん
> だ場合の処理ですよね?その場合のユーザの意図を重視するなら、
> 求められる動作は「削除して上書き」ではないでしょうか?

 *BSD や GNU の cp(1) では、ファイルの実体が一致している場合は
-f を付けてもコピーは回避されるようです。

 コピー元のファイルがコピー先のファイルへの symlinkだった場合
などを考慮したのかもしれません。

-- 
                     /
                    /__  __            Akinori.org / MUSHA.org
                   / )  )  ) )  /     FreeBSD.org / Ruby-lang.org
Akinori MUSHA aka / (_ /  ( (__(  @ iDaemons.org / and.or.jp

"It seems to me as we make our own few circles 'round the sun
          We get it backwards and our seven years go by like one"