Bug 456661 - i used mv command but it delete and cp command and it done nothing!!
Summary: i used mv command but it delete and cp command and it done nothing!!
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: coreutils
Version: 9
Hardware: i686
OS: Linux
low
urgent
Target Milestone: ---
Assignee: Ondrej Vasik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-07-25 12:58 UTC by erfan bonyadi
Modified: 2008-07-25 13:39 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-07-25 13:39:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description erfan bonyadi 2008-07-25 12:58:59 UTC
Description of problem:


Version-Release number of selected component (if applicable):fedora 9 2.6.25-14

hi there
take a look at this simple command !!
first:

[root@localhost Tools]# mv -v i686-rh73-gcc32.tgz /Rar
mv: overwrite `/Rar'? y
`i686-rh73-gcc32.tgz' -> `/Rar'
removed `i686-rh73-gcc32.tgz'

i checked .bashrc every thing is right !! so Y my files are deleted insted of
being moved to the /Rar directory?

secend:

[root@localhost Tools]# cp INSTALL /Rar
cp: overwrite `/Rar'? y

and nothing happend!! Y?

  
Actual results:deleted


Expected results:move


Additional info:the same is about the cp command but it do nothing !!

Comment 1 Caolan McNamara 2008-07-25 13:13:31 UTC
mv and cp are from "coreutils" (rpm -qf `which mv`) and not mythes-sk, or
4Suite. From you messages, I'd say that "/Rar" is not a directory, but a file,
hence the "overwrite" warnings.

Comment 2 Ondrej Vasik 2008-07-25 13:39:22 UTC
As explained in comment #1 everything works as expected. In first command you
moved file i686-rh73-gcc32.tgz into file /Rar . In second command you have
copied file INSTALL to the file /Rar and you replaced that file. If you want to
move file to certain path, be sure that the destination path exists (is created
by mkdir command). I would recommend you to read some basic linux commands howto
prior to prevent another unwanted accidents. Closing NOTABUG.


Note You need to log in before you can comment on or make changes to this bug.