delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/09/27/21:42:07

X-Spam-Check-By: sourceware.org
Message-ID: <451B2874.2010208@byu.net>
Date: Wed, 27 Sep 2006 19:42:12 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, franki2006 AT hotmail DOT com
Subject: Re: Problems with archiver "ar"
References: <BAY105-F2802E5876B734B895405BDD21A0 AT phx DOT gbl>
In-Reply-To: <BAY105-F2802E5876B734B895405BDD21A0@phx.gbl>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Frank Illenseer on 9/27/2006 11:34 AM:
> Sorry - for not providing all infos...
> 
> I did some additional tests: When mounting my drives in "binmode" the
> error is gone and when mounting them in "textmode" the error is there.

Sounds like ar needs to be taught about open(O_BINARY)/fopen("rb") (or be
linked with binmode.o).

> 
> But due to the newest bash update, I rather need "textmode" to re-use my
> existing scripts without conversion, as the come from a revision control
> system which always generates the EOLs according to the underlying system.

See the other thread on this today.  First, why can't you teach your
revision control system that on a cygwin binary mount, the underlying
system uses \n line endings, not \r\n?  Second, you can add this to the
beginning of your script to make bash ignore \r when the file has \r\n
endings even on a cygwin binary mount:

IFS=' ''	''
' # Yes, that is space, tab, and either a 1 or 2-character EOL as needed

> Cygwin Configuration Diagnostics
> Current System Time: Wed Sep 27 19:24:15 2006

We ask that you ATTACH this, not include it inline, to avoid spurious hits
in the mail archive search engine.

> 
> a:  fd             N/A    N/A
> c:  hd  NTFS     99998Mb  99% CP CS UN PA FC     OS-WinXP & Apps

Wow - that's one packed drive.

> 
> C:\Programme\cygwin      /          system  binmode
> C:\Programme\cygwin/bin  /usr/bin   system  binmode
> C:\Programme\cygwin/lib  /usr/lib   system  binmode
> .                        /cygdrive  system  binmode,cygdrive

I thought you said you had to use textmode?

> Not Found: sh

Not good.  Are you sure evereything is installed correctly?

- --
Life is short - so eat dessert first!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFGyh084KuGfSFAYARApOGAJ0WqlXTnLfjPVy1DSffKw0CRUvA7wCdEU/c
C8VgGZS+DK5ICM0WXh4M7mw=
=i6l8
-----END PGP SIGNATURE-----

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019