X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type; q=dns; s=default; b=nB0aSs DXqzz8h2npHB6afi8xgcViTgWQEGmTYOsxqxMHh4WfyLepcm2PTdVZYDWFaav71u d1eUZXQtJ7WB66L9YjWxh5HXO14cDBpYQgEQX5xEbNETd+YE2VV6x8N0pl2+pU9U AYtfIWm3+FbxfGkt0sDs98733yWo+yWHOH9PU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type; s=default; bh=QPbROrzc+Lpg dTsVWwzhT02QCuY=; b=rId9xWjB2fpt+rjhpqhSy7cJeiDz4+Dnte5qjRlR8EGb WuLKe76YF4+QSgizheLmjT8n1poKA+YyBl3p7bFTq38Tqe6hfBV6C+kyI6ll+YCw yPWNJzmjNVUiwphVtcsWNLfSwqA1rOFXuS5ALanMMnHf11JeAbYJzpq+nY7zBfs= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Message-ID: <55351612.1040803@redhat.com> Date: Mon, 20 Apr 2015 09:06:58 -0600 From: Eric Blake User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: 1.7.35: .sh script in dos format does not work. References: <235472002 DOT 6091440 DOT 1429465717870 DOT JavaMail DOT yahoo AT mail DOT yahoo DOT com> In-Reply-To: <235472002.6091440.1429465717870.JavaMail.yahoo@mail.yahoo.com> OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="FbOFQuthm4NdwhSoF7jOrAWgw3JHgBvxu" X-IsSubscribed: yes --FbOFQuthm4NdwhSoF7jOrAWgw3JHgBvxu Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 04/19/2015 11:48 AM, sean nakasone wrote: > Hi Folks, I think the .sh scripts that are in dos format are not being in= terpreted properly. You're not the first to report it: https://cygwin.com/ml/cygwin/2015-03/msg00466.html >=20 > mod is chmod with the first 2 characters erroneously chopped off. > The more newlines you put at the end of the file, the more characters get= chopped off. It looks like something is going wrong with lseek() mixed with text-mode mounts. >=20 > I downgraded to cygwin 1.7.33 and I don't get the error. But that's new information. I hope we haven't broken text mode mounts in recent cygwin changes. I still need to find time to investigate more to see whether it is bash's fault or cygwin's fault. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --FbOFQuthm4NdwhSoF7jOrAWgw3JHgBvxu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJVNRYSAAoJEKeha0olJ0NqgYQIAKnmaGCvTaafcwqMGf9jMdzR gN0RTYOVZ3kQIN1z7cJ/MPO0sFzp/9jg+xK09RZo1cyWL6QkUtGkzwj6pZf49uGu nIDK6P3yKfybhGoXTPASfs2B7PNseKs0K4xLdsX1fiKZl84lxB79C4T+eQgVd5Lh uESv33G4dxlcV9DPAHQ+0yuR3yJ7elr45aaKaIYb5G5V2AusQ1c5GHyo9pEr+bt1 st5FgqU5FLT+PEYJQucaDaEjuP5gaAqIWADIMUGoJAN8ZG6AD1WILQ/yvk9v+D2C eUPJKCQzxmJkosB14GUewZeSfjo0s3W+aNLOky2+f6fyPG7IhMU97Ph3kvMSbT8= =VknR -----END PGP SIGNATURE----- --FbOFQuthm4NdwhSoF7jOrAWgw3JHgBvxu--