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

From: Bob Proulx <[email-masked]>
Date: Sat, 24 Apr 2010 17:47:36 -0600

Alan Curry wrote:
> Bob Proulx writes:
> > As a side comment I don't see the point of:
> > 
> > >     $(which mv) "$@"
> 
> I can guess the point:
> 
> bash$ alias mv='mv -i'
> bash$ touch a b
> bash$ mv a b
> mv: overwrite `b'? ^C
> bash$ $(which mv) a b

Good observation.

Yes, but...  Using aliases in general scripting?  That way leads to
madness.  In the proposed shell function aliases could be in effect
but if that is the case then it would be better to explicitly turn off
aliasing for that command.  The traditional quoting to avoid aliases:

  \mv "$@"

> Silly aliases.

Agreed.

Bob