Subject: feature request: mv -p to create missing target dir

From: Rodolfo Borges <[email-masked]>
Date: Sun, 11 Apr 2010 11:07:09 -0300

$ mv foo ~/some/path/
mv: cannot create regular file `/home/bart9h/some/path/': Is a directory
$ mkdir -p ~/some/path/
$ mv foo ~/some/path/
$ :(
bash: syntax error near unexpected token `newline'
$
$
$ pacman -Sy coreutils
(... upgrades package ...)
$
$
$ mv -vp foo ~/some/path/
mv: created directory `/home/bart9h/some'
mv: created directory `/home/bart9h/some/path/'
`foo' -> `/home/bart9h/some/path/foo'
$ alias mv='mv -p'
$ :)
bash: syntax error near unexpected token `)'
$