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
On Mon, 14 Jan 2013 13:15:28 -0800 (PST)
Paul Goyette <paul%whooppee.com@localhost> wrote:
> > $ echo * newdir | xargs mv
> >
> > works.
>
> It only works while the expansion of * is shorter than xargs's
> maximum command length. Once you exceed that limit, you fail.
Hmm? xargs has no internal "maximum command length" afaik. xargs
reads from stdin and invokes mv with execve(2). execve may fail with
E2BIG, but not because of how the xargs command line is formed.
--jkl
Home |
Main Index |
Thread Index |
Old Index