all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Dimech <dimech@gmx.com>
To: Jean Louis <bugs@gnu.support>
Cc: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Re: Alias for eshell to grep command
Date: Thu, 19 Nov 2020 17:39:43 +0100	[thread overview]
Message-ID: <trinity-f21bdd71-70a9-4544-8743-73a1bc3da55f-1605803983909@3c-app-mailcom-bs05> (raw)
In-Reply-To: <X7aYyeaHfglhLPHn@protected.rcdrun.com>



> Sent: Thursday, November 19, 2020 at 5:09 PM
> From: "Jean Louis" <bugs@gnu.support>
> To: "Christopher Dimech" <dimech@gmx.com>
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: Alias for eshell to grep command
>
> * Christopher Dimech <dimech@gmx.com> [2020-11-19 06:55]:
> > I would like to make an alias for eshell so I can use the command
> >
> > grep --include="*.org" --include="*.texi" -hir -C "$1" "$2" "$3"
> >
> > Have tried the following but the tactic failed.
> >
> > alias grepot 'grep --include="*.org" --include="*.texi" -hir -C "$1"
> > "$2" "$3"'
>
> alias grepot '\*grep --include="*.org" --include="*.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.

>



      reply	other threads:[~2020-11-19 16:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-19  3:54 Alias for eshell to grep command Christopher Dimech
2020-11-19 16:09 ` Jean Louis
2020-11-19 16:39   ` Christopher Dimech [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=trinity-f21bdd71-70a9-4544-8743-73a1bc3da55f-1605803983909@3c-app-mailcom-bs05 \
    --to=dimech@gmx.com \
    --cc=bugs@gnu.support \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.