Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#479764: shell builtin mv fails to move files across devices



On Thu, May 08, 2008 at 05:23:34AM +0200, Vincent Lefevre wrote:
> On 2008-05-08 00:03:36 +0100, martin f krafft wrote:
> > also sprach Vincent Lefevre <vincent@xxxxxxxxxx> [2008.05.07.2350 +0100]:
> > > rm() { command rm $@ }
> > 
> > "$@" :_)
> 
> I have SH_WORD_SPLIT unset, but that's true it's better not to depend
> on this...
[...]

SH_WORD_SPLIT... and GLOB_SUBST.

But even without those, $@ and "$@" are different as $@ removes
the empty elements (which shouldn't be a problem with rm
though).

-- 
Stéphane



Messages sorted by: Reverse Date, Date, Thread, Author