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

Previous Next

Package: coreutils;

Reported by: Rodolfo Borges <rodolfo.borges <at> gmail.com>

Date: Sun, 11 Apr 2010 14:10:02 UTC

Severity: wishlist

Done: Bob Proulx <bob <at> proulx.com>

Bug is archived. No further changes may be made.

Full log


Message #22 received at 5926 <at> debbugs.gnu.org (full text, mbox):

From: Bob Proulx <bob <at> proulx.com>
To: 5926 <at> debbugs.gnu.org
Subject: Re: bug#5926: feature request: mv -p to create missing target dir
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




This bug report was last modified 10 years and 218 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.