system disks

Patrick McManus mcmanus at AppliedTheory.com
Fri May 26 21:22:18 EDT 2000


mv does the tests for you though.. so if the file doesn't move (and
it's in a copy mode because of fs stuff) it won't unlink the
original..


In a previous episode David Kramer said...
:: 
:: On Fri, 26 May 2000, Patrick McManus wrote:
:: 
:: > it is a heck of a lot safer than "cp -p *; rm *" though as you get per
:: > file error checking..
:: 
:: I'm sorry.  As long as we're getting picky here, in my mind it is a LOT
:: safer to cp then rm than it is to mv, because you can check the cp before
:: you do the rm.  The mv is atomic, and if it didn't do what you want,
:: you're SOL.
:: 
:: -- 
:: 
:: -------------------------------------------------------------------
:: DDDD   David Kramer                   http://kramer.ne.mediaone.net
:: DK KD  
:: DKK D  Science without religion is lame,
:: DK KD  religion without science is blind.
:: DDDD              Albert Einstein
:: 
:: -
:: Subcription/unsubscription/info requests: send e-mail with
:: "subscribe", "unsubscribe", or "info" on the first line of the
:: message body to discuss-request at blu.org (Subject line is ignored).
:: 

-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).



More information about the Discuss mailing list