From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Joe Buehler Newsgroups: gmane.os.cygwin,gmane.emacs.bugs Subject: Re: [BUG] emacs cygwin compile.el next-error fails with Ant Date: Thu, 24 Jul 2003 10:05:34 -0400 Organization: Spirent Communications, Inc. Sender: cygwin-owner@cygwin.com Message-ID: <3F1FE7AE.6080707@hekimian.com> References: <3F1E9317.9040204@hekimian.com> Reply-To: jbuehler@hekimian.com NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1059056284 13133 80.91.224.249 (24 Jul 2003 14:18:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 24 Jul 2003 14:18:04 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: cygwin-return-77913-cygwin=quimby.gnus.org@cygwin.com Thu Jul 24 16:18:03 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19fgru-00037x-00 for ; Thu, 24 Jul 2003 16:14:54 +0200 Original-Received: from sources.redhat.com ([67.72.78.213]) by quimby.gnus.org with smtp (Exim 3.12 #1 (Debian)) id 19fhA3-0000go-00 for ; Thu, 24 Jul 2003 16:33:39 +0200 Original-Received: (qmail 2313 invoked by alias); 24 Jul 2003 14:15:44 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin@cygwin.com Original-Received: (qmail 2306 invoked from network); 24 Jul 2003 14:15:43 -0000 Original-Received: from unknown (HELO main.gmane.org) (80.91.224.249) by sources.redhat.com with SMTP; 24 Jul 2003 14:15:43 -0000 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19fgnU-0002oQ-00 for ; Thu, 24 Jul 2003 16:10:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: cygwin@cygwin.com Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19fghg-00029g-00 for ; Thu, 24 Jul 2003 16:04:20 +0200 Original-Lines: 34 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en In-Reply-To: X-Enigmail-Version: 0.76.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Xref: main.gmane.org gmane.os.cygwin:34164 gmane.emacs.bugs:5445 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5445 Mark Evenson wrote: > /^[A-Z]:/ { > command = "tr \\\\\\\\\ / | xargs cygpath "; > printf "%s", $1 | command; > close(command); > for (i = 2; i < NF; i++) { > printf " %s", $i; > }; > printf "\n"; > > next; > } > {print} I think I see now why you said that my posted command would not work. The problem is that I have not yet fixed emacs to recognize drive letters. The workaround is to use the /cygdrive/DRIVELETTER syntax. So try something like this: ant whatever 2>&1 | sed 's=\\=/=g;s=\([a-zA-Z]\):/=/cygdrive/\1/=g;s/\r//g' This: 1. changes \ to / 2. changes X:/ to /cygdrive/X/ 3. removes carriage returns I saw you used some GNU sed feature for 3, so correct it if I got it wrong. I don't think it's portable to other platforms so I never use it. -- Joe Buehler