[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18681: The Linux cp command has bugs
From: |
Norihiro Tanaka |
Subject: |
bug#18681: The Linux cp command has bugs |
Date: |
Sat, 11 Oct 2014 08:48:54 +0900 |
Hi Polehn,
The -f option isn't `suppress interactive' in cp. It attempts to unlink
a destination not to be able to override. It's different from the option
in mv.
As the behavior is clearly defined in POSIX as Eric says, we won't be
able to change it.
BTW, I don't like the alias `cp -i'. So I remove it from .bashrc always
immediately after an installation of a distribution. (^_^)
If you temporarily want to cancel the the alias, you can define an another
alias as `cpf', and/or can use below instead of `cp'
- command cp -f
- /bin/cp -f
- ( unalias cp; cp -f ... )
Even if add new option `-F' to supress interactive to cp, we need to use
-F for cp and -f for mv to do it.
- bug#18681: cp Specific fail example, (continued)
bug#18681: The Linux cp command has bugs, Paul Eggert, 2014/10/10
bug#18681: The Linux cp command has bugs, Assaf Gordon, 2014/10/10