[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mv bug
From: |
Michal Vitecek |
Subject: |
mv bug |
Date: |
Sat, 9 Jun 2001 16:58:15 +0200 |
User-agent: |
Mutt/1.2i |
hello,
today i did:
mv -f filename filename
the result was that mv warned me about the same file name and happily
removed it altogether! shouldn't it test whether the two file names are
the same and if they are, do nothing? sorry, but its current behaviour
seems completely illogical to me:
address@hidden ~/]$ ls -l test
-rw-r--r-- 1 fuf fuf 12 Jun 9 16:48 test
address@hidden ~/]$ mv test test
mv: `test' and `test' are the same file
address@hidden ~/]$ ls -l test
-rw-r--r-- 1 fuf fuf 12 Jun 9 16:48 test
address@hidden ~/]$ mv -f test test
mv: `test' and `test' are the same file
address@hidden ~/]$ ls -l test
ls: test: No such file or directory
i understand the -f behaviour when the two files are not the same, but
why it removes the same file is completely beyond me.
--
fuf
------------------------------ na IRC -------------------------------------
BillGates address@hidden has joined #LINUX
...
mode/#linux [+b address@hidden by DoDad
BillGates was kicked off #linux by DoDad (banned: We see enough of Bill
Gates already.)
- mv bug,
Michal Vitecek <=