bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: invoking process under emacs


From: Manish Khettry
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.

cheers,
Manish


-----Original Message-----
From: Ehud Karni [mailto:ehud@unix.simonwiesel.co.il]
Sent: Saturday, September 15, 2001 9:16 AM
To: manish.khettry@bdnacorp.com
Cc: bug-gnu-emacs@gnu.org
Subject: Re: invoking process under emacs


On Fri, 14 Sep 2001 14:31:45 -0700, Manish Khettry <manish.khettry@bdnacorp.com> 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
> NUL")
>   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")
>   call-interactively(grep)
>   execute-extended-command(nil)
>   call-interactively(execute-extended-command)
>
> I'm using windows 2K.
>
> I do have /bin/bash-- atleast in my bash shell ls -l /bin/bash returns this:
>
> Administrator@MKHETTRY 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 <eliz@is.elta.co.il> 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:
       [HKEY_LOCAL_MACHINE\SOFTWARE\GNU\Emacs]
       "SHELL"="/bin/bash"

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:
    http://sources.redhat.com/ml/cygwin/2001-05/msg01016.html

Ehud.


--
 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      / \
     mailto:ehud@unix.simonwiesel.co.il    http://www.simonwiesel.co.il


reply via email to

[Prev in Thread] Current Thread [Next in Thread]