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: Stefano Lattarini
Subject: bug#5926: feature request: mv -p to create missing target dir
Date: Mon, 26 Apr 2010 12:07:07 +0200
User-agent: KMail/1.12.1 (Linux/2.6.30-2-686; KDE/4.3.4; i686; ; )

At Monday 26 April 2010, Jim Meyering <address@hidden> wrote:
> Using env is the most portable, at the expense
> of a fork (compared to bash's "command"):
> 
>   env mv "$@"
> 
Generally, this is true.  But Rodolfo was assuming bash as his shell 
anyway, and in this case the use of well-estabilished bash 
builtins/constructs (like "command", which was there since at least 
bash 2.0) can IMHO help to increase portability.  In fact, this way 
one doesn't have to remember the limits/idiosyncracies of many 
different shells and system utilities (and different versions thereof), 
but only those of one shell, i.e. bash (and I think that anyone who's 
read the section "Portable Shell Programming" in the autoconf manual 
could be easily convinced that this is a great advantage).

Regards,
    Stefano






reply via email to

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