On Sun, Apr 25, 2010 at 10:29 AM, Stefano Lattarini <[email protected]> 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
