From: Joe Buehler <jbuehler@hekimian.com>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: [BUG] emacs cygwin compile.el next-error fails with Ant
Date: Thu, 24 Jul 2003 10:05:34 -0400 [thread overview]
Message-ID: <3F1FE7AE.6080707@hekimian.com> (raw)
In-Reply-To: <a0n0f4yvty.fsf__37396.9968794428$1059048238@panix3.panix.com>
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
prev parent reply other threads:[~2003-07-24 14:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <a0he5dd5yv.fsf@panix3.panix.com>
[not found] ` <3F1E9317.9040204@hekimian.com>
2003-07-24 12:04 ` [BUG] emacs cygwin compile.el next-error fails with Ant Mark Evenson
2003-07-24 14:05 ` Joe Buehler [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F1FE7AE.6080707@hekimian.com \
--to=jbuehler@hekimian.com \
--cc=bug-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).