Command expansion: how to convince eshell I am not trying to execute the elisp statement?

git grep fizzbuzz $(git rev-list --all)
fatal: Invalid object name 'Symbol function definition is void'.

      

Of course the same command M-x shell

works great.

How to convince eshell I am not trying to execute the elisp expression here to get the git grep the kindness I am so clearly looking for?

+3


source to share


2 answers


Try:



git grep fizzbuzz ${git rev-list --all}

      

+2


source


Works in emacs if I wrap $ () with backtics like:



git grep fizzbuzz `$(git rev-list --all)`

      

0


source







All Articles