tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/44246: enhance mv to work better with xargs



mlelstv%serpens.de@localhost (Michael van Elst) writes:

> mouse%Rodents-Montreal.ORG@localhost (Mouse) writes:
>
>>> I've taken a look at bin/44246 and attempted to implement an
>>> enhancement to resolve the PR.
>
>>IMO this is not a defect in mv, but a defect in xargs.
> [...]
>>With my xargs, this would be, eg, "ls -1 | xargs -kX mv X newdir".
>
> And with a standard POSIX xargs it is:
>
> ls -1 | xargs -I X mv X newdir

Except that it doesn't work in modern world where you can easily find
files with whitespace (and apostrophes!) in name.

> What are you talking about?


-- 
HE CE3OH...



Home | Main Index | Thread Index | Old Index