Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Apr 2001 22:16:18 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        Dima Dorfman <dima@unixfreak.org>
Cc:        Jordan Hubbard <jkh@osd.bsdi.com>, freebsd-current@FreeBSD.ORG, olli@secnetix.de, brian@Awfulhak.org
Subject:   Re: cp -d dir patch for review (or 'xargs'?) 
Message-ID:  <200104212116.f3LLGI549254@hak.lan.Awfulhak.org>
In-Reply-To: Message from Dima Dorfman <dima@unixfreak.org>  of "Sat, 21 Apr 2001 13:19:57 PDT." <20010421201957.D12FD3E09@bazooka.unixfreak.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
I looked at your patches and immediately thought ``these patches 
can't be right'' as I was expecting it to deal with things such as 

  xargs -I [] echo args are [], duplicated are []

I'm also dubious about the patches working for large volumes on 
standard input.  At this point I scrapped the email I was composing 
'cos I didn't have time to look into it further :-/

I think it's important to test any patches with a large number of 
large path names as input - so that ARG_MAX is reached before the 
5000 argument limit and we can see that we don't end up getting E2BIG 
because of an accidental overflow/miscalculation.

Sorry I don't have more time to spend on it :-/

> I don't have a copy of SuSv2 or anything else that defines -I and -i,
> but from what I can gather, -i is the same as "-I {}" and -I allows
> things like this:
> 
> 	dima@spike% ./xargs -I [] echo CMD LINE [] ARGS < test
> 	CMD LINE this is the contents of the test file ARGS
> 
> 	dima@spike% ./xargs -I [] echo CMD [] LINE ARGS < test
> 	CMD this is the contents of the test file LINE ARGS
> 
> 	dima@spike% ./xargs -I [] echo [] CMD LINE ARGS < test
> 	this is the contents of the test file CMD LINE ARGS
> 
> Does that mean everyone is blind and missed my arrogant cross-post of
> the amazingly short patch to do this, or are we just interested in
> discussing it and not testing the implementation? ;-)
> 
> FWIW, I'm not sure the patch is entirely correct; xargs' processing of
> this stuff looks like black magic.  It works, but I'm not sure if I
> failed to cater to some other weird assumptions it makes.  This is why
> it'd help if someone would at least look at it.
> 
> Thanks,
> 
> 					Dima Dorfman
> 					dima@unixfreak.org

-- 
Brian <brian@Awfulhak.org>                        <brian@[uk.]FreeBSD.org>
      <http://www.Awfulhak.org>;                   <brian@[uk.]OpenBSD.org>
Don't _EVER_ lose your sense of humour !



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104212116.f3LLGI549254>