X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <4D389417.4020406@redhat.com> References: <4D34BD64 DOT 9050904 AT bopp DOT net> <20110119155957 DOT GA12142 AT ednor DOT casa DOT cgf DOT cx> <4D389417 DOT 4020406 AT redhat DOT com> Date: Fri, 21 Jan 2011 12:16:33 +1300 Message-ID: Subject: Re: Invoking GUI programs over SSH From: David Antliff To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Fri, Jan 21, 2011 at 08:59, Eric Blake wrote: > On 01/20/2011 12:47 PM, David Antliff wrote: >> On Thu, Jan 20, 2011 at 20:06, Thorsten Kampe wrote: >>> * David Antliff (Thu, 20 Jan 2011 18:31:25 +1300) >>>> Actually there is one outstanding issue with this "Hudson slaves over >>>> SSH" issue - due to the inability for Cygwin's bash to run scripts >>>> with DOS line endings, we've had to use SHELLOPTS=3Digncr in our >>>> Cygwin.bat files, since it cannot be modified once bash is running. > > Actually, it CAN be modified when bash is running, via 'set -o igncr'. > > Reread the bash release announcement for the various ways to control the > igncr settings: > http://cygwin.com/ml/cygwin-announce/2010-12/msg00032.html Ah, that's good, I'll use that - thank you. Introduced in bash 3.2.2 I see. >>> Convert the shell scripts to LF endings. >> >> Yes, that would work, but it's not quite that simple - git clones >> files in CRLF format, with the autocrlf option set. > > Are you using msysgit? =A0Because cygwin git does not clone files in CRLF > format on binary mounts (at least, it shouldn't, and if it does, that's > a bug in cygwin git). No, I'm using "native" Cygwin git 1.7.1 on Cygwin 1.7.5. A quick test (with core.autocrlf=3Dtrue) clearly shows all cloned files as being in CRLF format. Would you like me to test with the latest Cygwin? >> And no, you can't convert them to LF, recommit them in git, and expect >> them to check out later in LF format. They won't - they'll come out in >> CRLF format again, because of the way git works in Cygwin with >> autocrlf=3Dtrue set. > > Use cygwin git when using cygwin. Indeed. We've been using Cygwin git for two+ years now, and the line-endings issue is a major and constant headache, but I've posted all that months ago (and without resolution). These days we just delete and reclone when the dreaded line-endings-prevent-checkout-or-commit-or-anything problem raises its head :) -- David. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple