por que sed replace + redirecionamento exclui meu arquivo?

Estou usando o sed para pesquisar e substituir duas strings em um arquivo no bash (GNU sed)

Este é o arquivo após

-rw-r--r-- 1 websync www-data 4156 mar 27 12:56 /home/websync/tmp/sitio-oficial/sitios/wp-config.php

aqui é o comando que eu corro

sed 's/www-test/www/g' /home/websync/tmp/sitio-oficial/sitios/wp-config.php > /home/websync/tmp/sitio-oficial/sitios/wp-config.php

e o resultad

-rw-r--r-- 1 websync www-data 0 mar 27 13:05 /home/websync/tmp/sitio-oficial/sitios/wp-config.php

EDITAR Se eu não redirecionar a saída do sed, obtive a saída correta. Se eu redirecionar para um novo arquivo, tudo funcionará be

questionAnswers(6)

yourAnswerToTheQuestion