When attempting to move/rename a directory's content to a subdirectory hierarchy with its 'old' name as first component, vidir fails: mkdir dir EDITOR='sed -i -e s,dir,dir/subdir,' vidir -v results in /usr/bin/vidir: failed to rename ./dir to ./dir/subdir: Invalid argument .