bug#20849: documentation: difference between empty and non-empty dirs with "mv --no-target-directory"

2015-06-19 Thread Alexey Salmin
In the steps-to-reproduce below: - the first sequence of commands demonstrates case (B) - Non-empty directory - the second sequence of commands is for the case (A) - Empty directory - the third sequence is correctly labeled as (C) - File Very sorry for the confusion. Alexey On Fri, Jun 19, 2015

bug#20849: documentation: difference between empty and non-empty dirs with "mv --no-target-directory"

2015-06-19 Thread Alexey Salmin
Image you need to move the "$PWD/tmploc/a" directory into "$PWD/a" and ensure you don't end up with "$PWD/a/a" when "$PWD/a" already exists. The "mv --no-target-directory" (or "mv -T") does exactly that, however there are three different cases depending on a type of "$PWD/a": A) Empty directory: m

bug#20849: documentation: difference between empty and non-empty dirs with "mv --no-target-directory"

2015-06-27 Thread Pádraig Brady
On 19/06/15 11:23, Alexey Salmin wrote: > Image you need to move the "$PWD/tmploc/a" directory into "$PWD/a" and > ensure you don't end up with "$PWD/a/a" when "$PWD/a" already exists. > The "mv --no-target-directory" (or "mv -T") does exactly that, however > there are three different cases dependi

bug#20849: documentation: difference between empty and non-empty dirs with "mv --no-target-directory"

2018-10-22 Thread Assaf Gordon
close 20849 stop (triaging old bugs) On 27/06/15 09:30 PM, Pádraig Brady wrote: On 19/06/15 11:23, Alexey Salmin wrote: [] At the moment it explains "-T" as "Do not treat the last operand specially when it is a directory or a symbolic link to a directory." [1] This sort of contradicts the