On Apr 20 09:06, Eric Blake wrote: > 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. Nothing has changed in Cygwin in terms of text mode files or lseek for a long time. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat