On 05/17/2017 06:11 PM, Pádraig Brady wrote:
created directory './mv-test'
copied '/tmp/mv-test/file' -> './mv-test/file'
removed '/tmp/mv-test/file'
removed directory '/tmp/mv-test'
$ src/mv -v mv-test mv-test-2
renamed 'mv-test' -> 'mv-test-2'
If we're changing the format, I suggest having the output be useful as
input to the shell, like this:
$ src/mv -v /tmp/mv-test .
mkdir './mv-test'
cp '/tmp/mv-test/file' './mv-test/file'
rm '/tmp/mv-test/file'
rmdir '/tmp/mv-test'
$ src/mv -v mv-test mv-test-2
mv 'mv-test' 'mv-test-2'
This would be more useful. It would also be less confusing, since people who
use 'mv' already know the syntax of 'mv' etc., whereas with the draft version
they would need to deduce another syntax.