bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#34988: mv: check before asking users useless questions


From: Leslie S Satenstein
Subject: bug#34988: mv: check before asking users useless questions
Date: Mon, 25 Mar 2019 14:10:32 +0000 (UTC)

Did you consider that more than one terminal can be open, and at the second 
terminal, "b" could be renamed before replying to the mv command?

Regards 
 Leslie
 Leslie Satenstein
Montréal Québec, Canada

 

    On Monday, March 25, 2019, 2:07:25 a.m. EDT, 積丹尼 Dan Jacobson 
<address@hidden> wrote:  
 
 $ mv a b
mv: overwrite 'b'? y
mv: cannot overwrite non-directory 'b' with directory 'a'

User thinks well why didn't you check before uselessly asking me?

Full story:
$ mkdir a
$ touch b
mv: overwrite 'b'? y
mv: cannot overwrite non-directory 'b' with directory 'a'
$ \mv a b
mv: cannot overwrite non-directory 'b' with directory 'a'
$ alias
alias mv='mv -i'

So even if -i is in effect, please do the check before asking users
useless questions.



  

reply via email to

[Prev in Thread] Current Thread [Next in Thread]