1.7.35: .sh script in dos format does not work.

Eric Blake eblake@redhat.com
Mon Apr 20 15:07:00 GMT 2015


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 interpreted properly.

You're not the first to report it:
https://cygwin.com/ml/cygwin/2015-03/msg00466.html

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

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

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150420/7b4d18a4/attachment.sig>


More information about the Cygwin mailing list