From: Angus Comber <anguscomber@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Emacs Help <help-gnu-emacs@gnu.org>
Subject: Re: How to run an awk command on file in emacs - using minGW on Windows
Date: Wed, 18 Sep 2013 14:52:53 +0100 [thread overview]
Message-ID: <CAAtGUhUOmwkm17YQ1hmuoYZDZGNCPEiDRM-z1fJ5FLzMjcUB+w@mail.gmail.com> (raw)
In-Reply-To: <83ob7qo2t2.fsf@gnu.org>
On 18 September 2013 11:13, Eli Zaretskii <eliz@gnu.org> wrote:
> > Date: Wed, 18 Sep 2013 10:55:19 +0100
> > From: Angus Comber <anguscomber@gmail.com>
> > Cc: Emacs Help <help-gnu-emacs@gnu.org>
> >
> > I removed my PC's %SHELL% variable (set to
> C:/MinGW/msys/1.0/bin/bash.exe)
> >
> > I removed this line in my emacs init.el file (emacs init file)
> >
> > '(shell-file-name "C:/MinGW/msys/1.0/bin/bash.exe")
> >
> > After doing that I still have same issue and even using ' /Sam/'
> workaround
> > doesn't work. So this move doesn't look helpful.
>
> First, start with "emacs -Q", since there could be other
> customizations in your .emacs that interfere. Then try this:
>
> M-! gawk.exe /Sam/ test.txt
>
> Note: no quote characters around /Sam/, and call 'gawk.exe' directly
> (since 'awk' might be a shell script, which again brings the MSYS
> shell into the play).
>
> If this does not work, then your gawk.exe is probably an MSYS program,
> so you have the same filename-mangling problem again. You can find a
> native port of Gawk here:
>
>
> http://sourceforge.net/projects/ezwinports/files/gawk-4.1.0-2-w32-bin.zip/download
>
> Try using it instead.
>
> In general, remove the MSYS bin directory from your PATH, at least
> when you are using Emacs, and install native Windows ports of the Unix
> utilities that you need, putting them in a directory where Emacs can
> find them.
>
>
***
I really can't thank you enough. Updating the awk versions has fixed the
issue. I have removed shell from emacs config and everything is working
file (after awk program update as per your link).
Many thanks.
next prev parent reply other threads:[~2013-09-18 13:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-17 10:39 How to run an awk command on file in emacs - using minGW on Windows Angus Comber
2013-09-17 11:19 ` Eli Zaretskii
2013-09-17 16:41 ` Angus Comber
2013-09-17 17:20 ` Eli Zaretskii
2013-09-18 9:55 ` Angus Comber
2013-09-18 10:13 ` Eli Zaretskii
2013-09-18 13:52 ` Angus Comber [this message]
2013-09-18 15:00 ` Eli Zaretskii
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=CAAtGUhUOmwkm17YQ1hmuoYZDZGNCPEiDRM-z1fJ5FLzMjcUB+w@mail.gmail.com \
--to=anguscomber@gmail.com \
--cc=eliz@gnu.org \
--cc=help-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.
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).