tags 34988 notabug
severity 34988 wishlist
retitle 34988 mv: omit useless 'overwrite?' question
stop
On 2019-03-25 4:47 p.m., Paul Eggert wrote:
On 3/24/19 11:05 PM, 積丹尼 Dan Jacobson wrote:
$ mv a b
mv: overwrite 'b'? y
mv: cannot overwrite non-directory 'b' with directory 'a'
User thinks well
> "LSS" == Leslie S Satenstein writes:
LSS> Did you consider that more than one terminal can be open, and at the
LSS> second terminal, "b" could be renamed before replying to the mv
LSS> command?
I don't know about all that. Let's hope the designers consider all aspects.
On 3/24/19 11:05 PM, 積丹尼 Dan Jacobson 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?
POSIX requires the useless question. That being said, the question could
be omitted in th
$ 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 n