|Subject:||RE: invoking process under emacs|
|Date:||Thu, 20 Sep 2001 11:48:19 -0700|
Thanks for the help. I found that unsetting the SHELL environment variable before starting emacs
and editing the Windows registry did the trick.
From: Ehud Karni [mailto:address@hidden]
Sent: Saturday, September 15, 2001 9:16 AM
Subject: Re: invoking process under emacs
On Fri, 14 Sep 2001 14:31:45 -0700, Manish Khettry <address@hidden> wrote:
> When I try to run compile or grep under nt emacs I get the following error:
> Spawing child process: invalid argument.
> With the flag debug-on-error set to true, this is the backtrace.
> Signaling: (file-error "Spawning child process" "invalid argument")
> start-process("grep" #<buffer *grep*> "/bin/bash" "-c" "grep -n -e foo
> x.java NUL")
> start-process-shell-command("grep" #<buffer *grep*> "grep -n -e foo x.java
> compile-internal("grep -n -e foo x.java NUL" "No more grep hits" "grep"
> nil (("^\\(\\([a-zA-Z]:\\)?[^:( \n]+\\)[:( ]+\\([0-9]+\\)[:) ]" 1 3)))
> grep("grep -n -e foo x.java")
> I'm using windows 2K.
> I do have /bin/bash-- atleast in my bash shell ls -l /bin/bash returns this:
> address@hidden c:/glue/electric/src/examples/invoke
> $ ls -l /bin/bash
> -rwxr-xr-x 1 Administ None 474112 Sep 7 10:44 /bin/bash
On Sat, 15 Sep 2001 10:54:00 +0300, Eli Zaretskii <address@hidden> wrote:
> Do you have a port of the Grep program installed? It's not a standard
> part of Windows, so you need to install it.
Since you have bash (I assume it is Cygwin's), I'm almost sure you have
grep too. I think the problem lies elsewhere. I think that what Cygwin
calls /bin is in windows terms something like c:\cygwin\bin.
My solution (and I use it almost everyday) is:
1) Have the "c\cygwin\bin" (or whatever is the exact dir in your case)
in the windows path BEFORE you start NTemacs.
2) Set the SHELL value for emacs to "bash" (NOT "/bin/bash")
This is done in the registry:
You may also want to have the Cygwin mounts for you NTemacs editing,
There is a package cygwin-mount.el maintained by Klaus Berndl (the last
version is from 2001-05-18) it may be found in the Cygwin mail archive:
Ehud Karni Mivtach - Simon Insurance /"\
Tel: +972-3-7966-561 Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign
(USA) Fax and voice mail: 1-815-5509341 X Against HTML Mail
Better Safe Than Sorry / \
|[Prev in Thread]||Current Thread||[Next in Thread]|