bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Rodolfo Borges
Subject: bug#5926: feature request: mv -p to create missing target dir
Date: Sun, 25 Apr 2010 10:38:04 -0300

On Sun, Apr 25, 2010 at 10:29 AM, Stefano Lattarini
<address@hidden> 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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]