From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: Alias for eshell to grep command Date: Thu, 19 Nov 2020 17:39:43 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14359"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 19 17:44:59 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfn3K-0003bC-66 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 17:44:58 +0100 Original-Received: from localhost ([::1]:35520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfn3I-0004Jn-OR for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 11:44:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfmyq-0000zp-Je for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 11:40:20 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:58321) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfmyo-0006RQ-9Q for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 11:40:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1605803984; bh=6585C0nE0OvHeQCVeTV7meR5Hg1JxeAtTZVicRpsSLY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=aU7Xc5GjyNL9MF+x1XkZjvE5ISrLjHFBIDOH1k8e4Et59q3eMSW6Kxm7ubS1YrSCx ajkA8VAgOBlaFuOMvs+cG1OXEEjWwWghIHjmoDTBmpAtftalQ2BtV2QFF7KBmj7Mdl +GhLYyNEJi8D6stnNxtrTwNZG4I9ZcF+Jd/iWDs4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs05.server.lan [172.19.170.173]) (via HTTP); Thu, 19 Nov 2020 17:39:43 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:CJuPiDBZXKF/aawI8Fj7t5JlPmS95ZWTIVzQxiHaEi5bKlZjA7nfkxTLpwfJ0FQxk/pIW lkFZ3+/vuJ0uXnCAG9sSqwBDyu9oHvBtOztBEC2FX6wy6TNu5LYM/zU6hnSvLmHAOvj3AFH0LI5+ KS6WdoP/H0vXoq53VyrjMukf8xngajtfmqvpgPtE5YFqZ5WGhrZPd3GD9af6Hh+wkvwK9yy2GBNe fa1fTIBCsbWVIe0CaPoMOK9KN+bpkZp/eAlG3OQV9MHjYJOx0moru9wAAbJoGd8gunsuR2o5+nZJ q4= X-UI-Out-Filterresults: notjunk:1;V03:K0:LtO6F3onaAk=:uEdYucIFga4wwzKZKkBZOJ jjiCe21fKnpZZIOLetb9ybjgyeqHkLGLNbhxgVp/fJX0YkK20TzgP3VWHX3E9UpSTc2elcTRV SAHvY+H9TPIar9o+tYghRr7S49jaLDMuDdDy+DNfWL4ncm148LweMEdg7JyDHIxglboHuqz8r AxdkENC80WYR3QXkN1b5elGIf8d+UCiB8KqBCl4rNhHlR5XMhKrbMipsZiMynHRO30QGkY367 e3ukgx/mIGnUvXpbyYVDplu/NmyY3THTz7/YmmdxwMlbq68Cy7liayIgF0EKkXyZ66tn7dF7L 2GJlcbZZUthc/UYQD6cQO3J9lIbKBzHDu8I6p68MUJuKEyCwGwcvECYLz5scWFyyn0ZNJaymu 5Mnj0TkGs+QmkMOi2Oqx0ytKukxZKU4Kv4PRSpKpqDqyGlPAmZedKtetkV7lI8/w0lnwY67Ie CJgNTh0weX42cQZjmlL0ig4ai08OSxvAV2lBwwrE68TI1xhS0duw8EJ/AtRztJCz7E0Fw8Jx+ IMqdIv14mCxkZ9iRMEQFiab8d+7MfEy9H0KBukxh4KlTE10k7RNpLR93nYl8ZfJJXW6ORolZk fvV1QlFtpTJc8= Received-SPF: pass client-ip=212.227.17.21; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:125384 Archived-At: > Sent: Thursday, November 19, 2020 at 5:09 PM > From: "Jean Louis" > To: "Christopher Dimech" > Cc: "Help Gnu Emacs" > Subject: Re: Alias for eshell to grep command > > * Christopher Dimech [2020-11-19 06:55]: > > I would like to make an alias for eshell so I can use the command > > > > grep --include=3D"*.org" --include=3D"*.texi" -hir -C "$1" "$2" "$3" > > > > Have tried the following but the tactic failed. > > > > alias grepot 'grep --include=3D"*.org" --include=3D"*.texi" -hir -C "$= 1" > > "$2" "$3"' > > alias grepot '\*grep --include=3D"*.org" --include=3D"*.texi" -hir -C "$= 1" "$2" "$3"' > > I just believe by doing above you may do that. > > I could see that I had to escape * in front of grep as only *grep will > use the system command grep. In eshell Emacs functions have priority > so $ grep alone would invoke Emacs grep and show it in the buffer. > > I believe you want it shown in the eshell, right? You are quite right. Yes in the eshell. >