Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Mon, 19 Sep 2005 14:27:29 -0400 (EDT)
From: Jason Pyeron <jpyeron@pdinc.us>
To: cygwin@cygwin.com
Subject: xargs and upstream bug?
Message-ID: <Pine.LNX.4.62.0509191418010.5295@ns.pyerotechnics.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-IsSubscribed: yes


just checking to see if is just a cygwin issue or is up stream.

http://savannah.gnu.org/bugs/index.php?func=detailitem&item_id=14587


from man xargs:

  --max-lines[=max-lines], -L[max-lines]
      Use  at  most max-lines nonblank input lines per command line; max-lines defaults to 1 if omitted.
      Trailing blanks cause an input line to be logically continued on the next input line.  Implies -x.




[jpyeron@mrlaptop rpms.pdinc.us]$ find | perl -ne 'm/(.+)\/.+\.rpm$/ and print $1, "\n";' | sort -u | xargs -L echo
xargs: invalid number for -l option
Usage: xargs [-0prtx] [-e[eof-str]] [-i[replace-str]] [-l[max-lines]]
        [-n max-args] [-s max-chars] [-P max-procs] [--null] [--eof[=eof-str]]
        [--replace[=replace-str]] [--max-lines[=max-lines]] [--interactive]
        [--max-chars=max-chars] [--verbose] [--exit] [--max-procs=max-procs]
        [--max-args=max-args] [--no-run-if-empty] [--arg-file=file]
        [--version] [--help] [command [initial-arguments]]

Report bugs to <bug-findutils@gnu.org>.
[jpyeron@mrlaptop rpms.pdinc.us]$ find | perl -ne 'm/(.+)\/.+\.rpm$/ and print $1, "\n";' | sort -u | xargs -l echo
./SRPMS
./foo bar
./i386
[jpyeron@mrlaptop rpms.pdinc.us]$ find | perl -ne 'm/(.+)\/.+\.rpm$/ and print $1, "\n";' | sort -u | xargs -L1 echo
./SRPMS
./foo bar
./i386
[jpyeron@mrlaptop rpms.pdinc.us]$

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Partner & Sr. Manager             7 West 24th Street #100     -
- +1 (443) 921-0381                 Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you 
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

