Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 23 Sep 2005 20:40:07 -0400 From: Jason Tishler To: cygwin AT cygwin DOT com Subject: Re: rebase: rebaseall growing pains Message-ID: <20050924004007.GA1500@tishler.net> Mail-Followup-To: cygwin AT cygwin DOT com References: <43344AAC DOT 6050806 AT users DOT sourceforge DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43344AAC.6050806@users.sourceforge.net> User-Agent: Mutt/1.4.1i X-IsSubscribed: yes Yaakov, On Fri, Sep 23, 2005 at 01:34:20PM -0500, Yaakov S wrote: > When I have to run rebase from the distro, I get the following error: > gzip: Argument list too long Oops! > This is because of the command "gzip -d -c /etc/setup/*.lst.gz". > Instead, that part could work like the following: > > [snip] > # Create rebase list > for f in /etc/setup/*.lst.gz > do > gzip -d -c $f | grep -E "($Suffixes)\$" | \ > sed -e '/cygwin1.dll$/d' -e 's/^/\//' >>"$TmpFile" ; > done I would prefer something like the following: find /etc/setup -name '*.lst.gz' -maxdepth 1 | xargs gzip -d -c | \ grep -E "($Suffixes)\$" | sed -e '/cygwin1.dll$/d' -e 's/^/\//' \ >>"$TmpFile" because it is more efficient than the above. I will release a new version of rebase with this fix. Thanks for the heads up. Jason -- PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6 -- 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/