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

From: Rodolfo Borges <[email-masked]>
Date: Sun, 25 Apr 2010 10:38:04 -0300

On Sun, Apr 25, 2010 at 10:29 AM, Stefano Lattarini
<[email-masked]> wrote:
> Just a few obsevations on side issues...
>
>> >     $(which mv) "$@"
> I think that's needed because otherwise the shell function would end
> up calling itself recursively, since it's named `mv' too.

exactly.

>> The 'which' command is another one of those simple but not very
>> portable commands that does different things on different systems.
> Since Rodolfo is assuming bash as his shell, he could have used:
>  $(type -P mv) "$@"
> instead, which is more "portable" because it just uses bash builtins.

thanks, stefano.
didn't know about type -P