help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alias for eshell to grep command


From: Christopher Dimech
Subject: Re: Alias for eshell to grep command
Date: Thu, 19 Nov 2020 17:39:43 +0100


> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]