From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Danny YUE Newsgroups: gmane.emacs.help Subject: Re: grep Date: Thu, 09 Mar 2017 19:25:54 +0800 Message-ID: <87zigulmil.fsf@gmail.com> References: <8737enlyos.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1489058855 14030 195.159.176.226 (9 Mar 2017 11:27:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 9 Mar 2017 11:27:35 +0000 (UTC) User-Agent: mu4e 0.9.18; emacs 25.2.1 Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 09 12:27:31 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clwEB-0002uZ-R3 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Mar 2017 12:27:27 +0100 Original-Received: from localhost ([::1]:33342 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clwEH-0003PT-GU for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Mar 2017 06:27:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clwDf-0003Nt-1Y for help-gnu-emacs@gnu.org; Thu, 09 Mar 2017 06:26:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clwDa-0001el-4t for help-gnu-emacs@gnu.org; Thu, 09 Mar 2017 06:26:55 -0500 Original-Received: from mail-pg0-x22a.google.com ([2607:f8b0:400e:c05::22a]:34186) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1clwDZ-0001ed-UB for help-gnu-emacs@gnu.org; Thu, 09 Mar 2017 06:26:50 -0500 Original-Received: by mail-pg0-x22a.google.com with SMTP id 77so25478198pgc.1 for ; Thu, 09 Mar 2017 03:26:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=zXguplNc1ccG5qxi4QzNdAzHodIgfbnZY+wW+GnGyO0=; b=gcwYxgGibnFepyw7o0Nqh/iCNEGsx8QlTu2Z47rsQjh1gtnf5s2sqkIBEenAi91/In mi0qubmbhj5Gwc/Yw8EpaVCnpeiIkCx5ZCy6/JNY3WjmXRC/nhBzrKnTm3xqkkEUOKa8 3HWzwjriWg5p+aOzeNSc4PBVfcLI9TxZAkMf2mRHH3+gufhwTPfS6stbFpHEtnPHXEn4 Se2JeeiI0oAp9iM4iG1h6MtxbqDLK68+bXzHC5C9P+9RaCfjLvLj97zCztDhMnsqFGio 7HsKh9HIzKJpVbPVhujuZqpLadwOUXhW+Irn3zl57XFGnPSedVtFXPg9cxxSdNk1uiRT DuCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=zXguplNc1ccG5qxi4QzNdAzHodIgfbnZY+wW+GnGyO0=; b=Eo3GXi0lu/cHCnzZluwwbvXGtrU824U/1yRujxPvlH/X5PZo7Fjv8VJVSormCotsSx HaUfFwZm646YDCD08XhBcc8DYHreMTczvi7NT1vIkS1gYNCWOyj0MsY4yr/TYmofzBCo YEYqYJjgIfUYXDyuVb86jHO9UxluPiTP+AZjUxuYi+3WTE90KBNQE+94EueUpuzkCZg+ GiMkAgG2Yakz7lZYGiwcx4K9eBMtqf/H7NS9fMrw+ugKNnpfg7Gc7GYvcsREmaS3o/cq I7Kth4OwfSQrSKI+xP/G8W4eQh4m4t917tUBSefmiOHaoUM9STL114yQNfIIxix6lHll 68vQ== X-Gm-Message-State: AMke39lkyy3gzXw0sAA8RdjJ+G+5My4fD45lGghB5kgCgjWiqMHftrcM7PZj0pghDFJOKA== X-Received: by 10.98.77.131 with SMTP id a125mr13544711pfb.90.1489058808791; Thu, 09 Mar 2017 03:26:48 -0800 (PST) Original-Received: from localhost (23.83.238.120.16clouds.com. [23.83.238.120]) by smtp.gmail.com with ESMTPSA id l17sm11972007pfg.62.2017.03.09.03.26.46 (version=TLS1_2 cipher=AES128-GCM-SHA256 bits=128/128); Thu, 09 Mar 2017 03:26:47 -0800 (PST) In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c05::22a X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112478 Archived-At: Emanuel, are you talking to me...? The OP's problem might be caused by a incorrectly configured PATH, which I can't help because I'm not familiar with Windows/Emacs. However anyway EShell grep should work by default. For those who may need to know: In EShell if you just use "grep" in the command line, it invokes built-in grep facility implemented by emacs lisp. And if you want to use system grep, you need to specify it by a leading star like "*grep". See below eshell log: ~ $ which grep eshell/grep is a compiled Lisp function in ‘em-unix.el’ ~ $ which *grep /bin/grep Emanuel Berg writes: > Danny YUE wrote: > >> Just for mentioning another option if you >> need it: Use M-x eshell which has a built-in >> grep facility. > > What about M-x shell RET and then plain /bin/grep ?