On Fri, Oct 10, 2014 at 7:48 PM, Norihiro Tanaka wrote:
> 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'
Note that (in bash at least) you can prefix the command with a
backslash (\) to override an alias for that in
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
Polehn, Mike A wrote:
> Did a search for 'cp -I' and found it for root:
>
> [root@F20-v3 ~]# find /root -type f -print |xargs grep -Hn "cp i"
> /root/.bashrc:6:alias cp='cp -i'
> /root/.cshrc:6:alias cp 'cp -i'
> /root/.tcshrc:6:alias cp 'cp -i'
It might be easier to guess that there is an alias
On 10/10/2014 02:00 PM, Polehn, Mike A wrote:
> This still left the incorrect operation of the interactive operation when
> both -i and -f is used.
The behavior of -i vs. -f interaction is required by POSIX; in
particular, POSIX is explicit that -i and -f are NOT a toggle switch of
one another,
Hi Assaf!
Thank you for your quick response!
There is always multiple ways to do things. The git tool has a diff tool built
in that makes file comparison easy.
I have run across multiple times that copying one tree over another is
desirable.
In another bug message thread, we found that the ca
Hi Paul!
Thank you for your quick response!
You were logged in as a normal user.
I was logged in as root.
I tried as normal user and it worked the same as you.
However, logged in as root and the error occurred as before.
Did a search for 'cp -I' and found it for root:
[root@F20-v3 ~]# find /r
Sorry, had a typo:
On 10/10/2014 03:13 PM, Assaf Gordon wrote:
# For each file managed by git (with 'git ls'),
# compare it to the corresponding file in the other directory:
git ls -0 | xargs -0 -I% diff -q % ../dpdk-1.7.1/%
Should be:
git ls -z | xargs -0 -I% diff -q % ../dpd
Hello Mike,
On 10/10/2014 01:25 PM, Polehn, Mike A wrote:>
Problem need to copy a tree of 1000s of files to another directory
that is a git directory that has a whole bunch of additional build
files, so diff between the directories will not do any good.
This is slightly off-topic, but if you
I do not observe the symptoms that you report. See below. My guess is that
you've aliased 'cp' to 'cp -i', which is probably a mistake.
$ git clone git://dpdk.org/dpdk
Cloning into 'dpdk'...
remote: Counting objects: 16249, done.
remote: Compressing objects: 100% (3976/3976), done.
remote: Tot
Polehn, Mike A wrote:
Using: cp -f -r
For each file being copied it asked:
cp: overwrite X?
That's not what I observe here (see below). Perhaps there's something else
going on, maybe an alias. For example, I couldn't get the cp to work without
also using -T. Can you ple
# get and check out version
[root@F20-v3 ~]# cd /usr/src
[root@F20-v3 src]# git clone git://dpdk.org/dpdk
[root@F20-v3 src]# cd dpdk
[root@F20-v3 dpdk]# git tag
v1.2.3r0
v1.2.3r1
v1.2.3r2
v1.2.3r3
v1.2.3r4
v1.3.0r0
v1.3.1r0
v1.3.1r1
v1.3.1r2
v1.3.1r3
v1.4.0r0
v1.4.1r0
v1.4.1r1
v1.4.1r2
v1
cp --version: 8.21
running on Fedora 20, version 3.16.3-200.fc20.x86_64 with latest updates
The Linux copy command (cp) has problems
Problem need to copy a tree of 1000s of files to another directory that is a
git directory that has a whole bunch of additional build files, so diff between
12 matches
Mail list logo