unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* find-grep fails with cmdproxy and gnuwin32 programs
@ 2006-12-13  0:51 Lennart Borgman
  2006-12-13  1:02 ` Lennart Borgman
  0 siblings, 1 reply; 2+ messages in thread
From: Lennart Borgman @ 2006-12-13  0:51 UTC (permalink / raw)


I have currently set shell-file-name and explicit-shell-file-name to the 
full file name of cmdproxy.exe. I have gnuwin32 versions of find, xargs 
and grep in my path. Then I try

     M-x grep-find RET
     find . -name "*.el" -type f -print0 | xargs -0 -e grep -nH -e lwarn

I get

    -*- mode: grep; default-directory: "c:/EmacsW32/lisp/" -*-
    Grep started at Wed Dec 13 00:16:36

    find . -name "*.el" -type f -print0 | xargs -0 -e grep -nH -e lwarn
    xargs: grep: Permission denied

   Grep finished (matches found) at Wed Dec 13 00:16:37

If I try the same command in a console window it works. If I look at 
exec-path and (getenv "PATH") they look ok to me.

I am trying to find out if Cygwin or Gnuwin32 is best for things like 
this. If I use Cygwin instead it works, but it seems like a bug 
somewhere that Gnuwin32+cmd.exe does not work. Or am I doing something 
stupid here?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: find-grep fails with cmdproxy and gnuwin32 programs
  2006-12-13  0:51 find-grep fails with cmdproxy and gnuwin32 programs Lennart Borgman
@ 2006-12-13  1:02 ` Lennart Borgman
  0 siblings, 0 replies; 2+ messages in thread
From: Lennart Borgman @ 2006-12-13  1:02 UTC (permalink / raw)


Lennart Borgman wrote:
> I have currently set shell-file-name and explicit-shell-file-name to 
> the full file name of cmdproxy.exe. I have gnuwin32 versions of find, 
> xargs and grep in my path. Then I try
>
>     M-x grep-find RET
>     find . -name "*.el" -type f -print0 | xargs -0 -e grep -nH -e lwarn
>
> I get
>
>    -*- mode: grep; default-directory: "c:/EmacsW32/lisp/" -*-
>    Grep started at Wed Dec 13 00:16:36
>
>    find . -name "*.el" -type f -print0 | xargs -0 -e grep -nH -e lwarn
>    xargs: grep: Permission denied
>
>   Grep finished (matches found) at Wed Dec 13 00:16:37
>
> If I try the same command in a console window it works. If I look at 
> exec-path and (getenv "PATH") they look ok to me.
>
> I am trying to find out if Cygwin or Gnuwin32 is best for things like 
> this. If I use Cygwin instead it works, but it seems like a bug 
> somewhere that Gnuwin32+cmd.exe does not work. Or am I doing something 
> stupid here?

Sorry. Please forget this. Obviously I was, since it works now. There 
seems to have been something wrong with PATH though I did not think so.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-12-13  1:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-13  0:51 find-grep fails with cmdproxy and gnuwin32 programs Lennart Borgman
2006-12-13  1:02 ` Lennart Borgman

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).