cp -f fails when destination is a recursive symlink:

    $ ln -s self self
    $ cat self 
    self: Too many levels of symbolic links
    $ touch a
    $ cp a self 
    cp: failed to access 'self': Too many levels of symbolic links
    $ cp -f a self 
    cp: failed to access 'self': Too many levels of symbolic links
    

>From the man page:

       -f, --force
              if  an  existing destination file cannot be opened, remove it and 
try again (this option is ignored when
              the -n option is also used)

What am I missing?

Thanks,

Ernesto



Reply via email to