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
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
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
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