[Top][All Lists]
[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
- bug#5926: feature request: mv -p to create missing target dir, Rodolfo Borges, 2010/04/12
- bug#5926: feature request: mv -p to create missing target dir, Bob Proulx, 2010/04/15
- bug#5926: feature request: mv -p to create missing target dir, Rodolfo Borges, 2010/04/16
- bug#5926: feature request: mv -p to create missing target dir, Stefano Lattarini, 2010/04/26
- bug#5926: feature request: mv -p to create missing target dir, Rodolfo Borges, 2010/04/25
- bug#5926: feature request: mv -p to create missing target dir, Andreas Schwab, 2010/04/26
- bug#5926: feature request: mv -p to create missing target dir, Stefano Lattarini, 2010/04/26
- bug#5926: feature request: mv -p to create missing target dir, Jim Meyering, 2010/04/26
- bug#5926: feature request: mv -p to create missing target dir, Andreas Schwab, 2010/04/26
- bug#5926: feature request: mv -p to create missing target dir, Stefano Lattarini, 2010/04/26