X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.1 required=5.0	tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,TW_YG,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <33084760.post@talk.nabble.com>
Date: Thu, 5 Jan 2012 03:47:20 -0800 (PST)
From: cxira <teh.pigmonkey@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Distributed Git not compiled under Cygwin?
In-Reply-To: <4F050F9B.5010505@bopp.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
References: <33047124.post@talk.nabble.com> <4EFB8FC1.7060307@bopp.net> <4EFB9714.2070103@bopp.net> <33049604.post@talk.nabble.com> <4EFC834D.5090805@bopp.net> <33052021.post@talk.nabble.com> <4EFCD4A5.70206@bopp.net> <33052301.post@talk.nabble.com> <4EFCE87E.9030202@bopp.net> <33052477.post@talk.nabble.com> <4F050F9B.5010505@bopp.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com



Jeremy Bopp-3 wrote:
> 
> That's not bad, but I don't think you should need "start" at all.  Yes,
> it will run something in the background, but the chmod command should
> return almost instantly, and it would be good to know if it errors out
> for some reason.  You would lose any way to detect that if you spin it
> off to the background. 
> 
> You should also use the cygpath program to convert your paths if
> possible.
I tried it without start and I do see a command prompt. The other thing is,
it won't pause with an error regardless. You make a good point though, so I
tweaked the command. Additionally, I can't believe I didn't know about
cygpath. There are numerous times that would have been tremendously useful.
Now using:

silent execute "!start C:\\cygwin\\bin\\run.exe /usr/bin/chmod 0644
\"`/usr/bin/cygpath '" . expand("<afile>") . "'`\" 2>> ~/.vim/error"

Since my .vim folder is under source control, I'll see if the error file
pops up.
-- 
View this message in context: http://old.nabble.com/Distributed-Git-not-compiled-under-Cygwin--tp33047124p33084760.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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

