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: Bob Proulx
Subject: bug#5926: feature request: mv -p to create missing target dir
Date: Sat, 24 Apr 2010 17:47:36 -0600
User-agent: Mutt/1.5.18 (2008-05-17)

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






reply via email to

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