bug-coreutils
[Top][All Lists]
Advanced

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

Re: mv -i --reply=no ... acts like --reply=yes


From: Jim Meyering
Subject: Re: mv -i --reply=no ... acts like --reply=yes
Date: Thu, 15 Apr 2004 18:04:39 +0200

address@hidden (Paul Jarc) wrote:
> Jim Meyering <address@hidden> wrote:
>> Tim Waugh <address@hidden> wrote:
>>> $ echo a > a/foo
>>> $ echo b > b/foo
>>> $ mv -i --reply=no a/foo b/foo
>>> $ cat b/foo
>>> a
>>
>> That's because -i is equivalent to --reply=query (as mentioned in --help),
>> and since you specify --reply=no after -i,
>> the --reply=no takes precedence.
>
> I think that's what Tim expected.  But b/foo was replaced with a/foo,
> in spite of --reply=no.  The same thing happens for me with 5.2.1.

But --reply=no has an effect only when there *would be* a prompt,
and once the -i has been canceled out (and since the destination
file is writable), there is no prompt.




reply via email to

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