Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12475 - wrong mv command in startkde
Summary: wrong mv command in startkde
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-20 03:55 UTC by Georgios E. Kylafas
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georgios E. Kylafas 2002-12-20 03:55:51 UTC
I have set an alias for mv like this: 
 
alias mv='mv -i' 
 
so as not to accidentally overwrite any file. 
However, whenever I start X & KDE, the system waits for my 
verification of the following command: 
 
[ -d .kde ] && mv .kde .kde.backup 
 
(belonging to the /usr/kde/3/bin/startkde script) 
in tty1, while I watch the X background in tty7. 
 
I propose the following modification to the startkde script: 
 
--- startkde~   2002-12-20 11:39:41.000000000 +0200  
+++ startkde    2002-12-19 11:03:43.000000000 +0200  
@@ -9,7 +9,7 @@  
 export KDEDIRS="/usr/kde/3:/usr" # do NOT include env.d's $KDEDIRS  
  
 cd ~  
-[ -d .kde ] && mv .kde .kde.backup  
+[ -d .kde ] && mv -f .kde .kde.backup  
 [ -e .kde3 ] || mkdir .kde3  
 ln -sf .kde3 .kde  
 export KDEHOME="${HOME}/.kde3"
Comment 1 Dan Armak (RETIRED) gentoo-dev 2003-01-27 15:32:04 UTC
I have fixed it in the 3.1 ebuild, by calling /bin/mv directly, so aliases will have no effect. -f 
should not be needed now. 
Will fix in 3.0.x (there it calls for new ~ revisions as they're stable and we're in a freeze)... 
Comment 2 Dan Armak (RETIRED) gentoo-dev 2003-01-28 06:06:53 UTC
Fixed for 3.0.x in the new (masked) kdebase-3.0.5a-r1. 
Comment 3 Dan Armak (RETIRED) gentoo-dev 2003-01-28 06:26:48 UTC
um, that should have been -r2 
Comment 4 Georgios E. Kylafas 2003-01-31 07:40:52 UTC
Your solution fixes things up very nicely. Thank you very much :-) 
Comment 5 Dan Armak (RETIRED) gentoo-dev 2003-02-01 12:33:39 UTC
Those revisions are now marked ~, so we can close this.