I accidently typed the following: cp
*inc
I had two files that matched in the
directory. The first match copied on top of
the second match.
I see no idea why anybody would expect this
result. This should be sealed off and return an error message
since this action destroyed a file of mine I had to recover from a
backup.
i.e.
before
--------
a.inc: hello world
b.inc: oh my
action
---------
cp *inc
after
--------
a.inc: hello world
b.inc: hello world
Thanks,
Brian |
- Re: cp command bug Brian Wasserman
- Re: cp command bug Bob Proulx