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 15:02:59 +0800 Message-ID: <8737enlyos.fsf@gmail.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1489049149 11102 195.159.176.226 (9 Mar 2017 08:45:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 9 Mar 2017 08:45:49 +0000 (UTC) User-Agent: mu4e 0.9.18; emacs 25.2.1 Cc: "help-gnu-emacs@gnu.org" To: Fred Stanke Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 09 09:45:42 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 1clthc-0001nw-Dr for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Mar 2017 09:45:40 +0100 Original-Received: from localhost ([::1]:32788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clthg-0001aH-Kz for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Mar 2017 03:45:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cls7B-0003N8-Sg for help-gnu-emacs@gnu.org; Thu, 09 Mar 2017 02:03:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cls78-0003mb-Nd for help-gnu-emacs@gnu.org; Thu, 09 Mar 2017 02:03:57 -0500 Original-Received: from mail-pg0-x22a.google.com ([2607:f8b0:400e:c05::22a]:34981) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cls78-0003lI-I8 for help-gnu-emacs@gnu.org; Thu, 09 Mar 2017 02:03:54 -0500 Original-Received: by mail-pg0-x22a.google.com with SMTP id b129so22991808pgc.2 for ; Wed, 08 Mar 2017 23:03:52 -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; bh=KucH3GY8xQB3aBGePoStvs3bSINjj85A64c4VFFN33k=; b=Z1RrgUjdE9lldZSMTKVZXNvYjtUS8/jVgz3c/OoQK1fQ4swpV45CWGY0AImEhMm29/ IHu5Ek/fcGbnWUp3d/0LliiOa6F7sTyA7pcKJUhuVfabmn8cRF5RkQWYtOFBpC6tSP1w TvO9BVU4uPriiBrK+FdxRIPceqMFudoXeJw3g+ELy205t6RCIUc0WwSgJkIJNXBIKFGW OjO/Xdc3wjlGZkPcP6dL5Kp4Qdk2P6XJlQxmDpheRowVNDBh7VwT3KJm7t8XXJoHSmQg +NhJDrnib30vu/3V8X/YlE00YI4Rw4+2qywf8o9ZVyurTZ8K9l9p4fidmV+s7zGkNzq1 gLhQ== 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; bh=KucH3GY8xQB3aBGePoStvs3bSINjj85A64c4VFFN33k=; b=E7/pZHzeKYeTQ7zlknl+s47SpfTM4gZ1sPScTc2R2lby0sBMydDJRdSWnEjsCjnA4z dC1W9fGkiMI/lvX11ZZ5L3D671nyFGwc308FVJVJQoCFTJLgFGqHD13JwQp9EqAEpVDS oR+xx23qTHETA5XMV6jhVFdzu7atyqxTX4ibwRDGoiHWSzXZxgW41s8TAb1y1kiELW4j OAFVtXHr1e5DJv153hBQyiI+a2PMi65nzLZuCIEqvbMS4ooqzGpo0qUEBN1g6a9IWiMt 8DMBcntyqKVJZYSbtDhpISOIYYeOp6F8Y77JXxogzvQnCYYu6qZG2lv6rGlY+JYgV2EQ NzfQ== X-Gm-Message-State: AMke39kA7vLaxQmZtUMBKrXTgXUwUyaklGhy+SWMFhgw8+vABgUXkK6r0MOH1JSQ27SLbw== X-Received: by 10.99.66.193 with SMTP id p184mr11972764pga.213.1489043032083; Wed, 08 Mar 2017 23:03:52 -0800 (PST) Original-Received: from localhost (23.83.238.120.16clouds.com. [23.83.238.120]) by smtp.gmail.com with ESMTPSA id 187sm10061803pff.17.2017.03.08.23.03.50 (version=TLS1_2 cipher=AES128-GCM-SHA256 bits=128/128); Wed, 08 Mar 2017 23:03:51 -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-Mailman-Approved-At: Thu, 09 Mar 2017 03:44:53 -0500 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:112474 Archived-At: Just for mentioning another option if you need it: Use M-x eshell which has a built-in grep facility. Danny Fred Stanke writes: > I have emacs installed at > C:\Applications\Emacs\bin\runemacs.exe > It uses, *I believe* > c:/Users/Fred/AppData/Roaming/.emacs.d/init.el > > when I try to do a grep, I get this error: > > -*- mode: grep; default-directory: "c:/Users/Fred/" -*- > Grep started at Wed Mar 8 19:46:54 > > grep -n the *.txt NUL > 'grep' is not recognized as an internal or external command, > operable program or batch file. > > Grep exited abnormally with code 1 at Wed Mar 8 19:46:54 > > What do I need to do to get grep to work. > (FYI: I have deleted at least one Cygwin installation I had tried.)