Yes, this would work for how I put the initial question. Maybe I need to explain, where my motivation comes from:
I am often in a situation, where I work with remote machines. Vifm allows for convenient remote connections via sshfs
. Typically, on the remote machine I am faced with some kind of "data-versioning-control", i.e. files are neatly sitting in a project folder, but are only represented by symlinks, pointing to some central location with a hash-value naming convention. For instance:
interesting_file.ext -> /path/to/central/folder/46/8a8b8c98f89d8989e
Hence I used the cp -Lr
approach to dereference the symbolic link and keep the name of the link-file. Your proposal works fine, however, it will take over the actual file name, which is in this case a hash-value.