[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: executing bash function with shell-command
From: |
mvar |
Subject: |
Re: executing bash function with shell-command |
Date: |
Wed, 24 Feb 2016 23:52:02 +0200 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
> Emanuel Berg <embe8573@student.uu.se> writes:
>
> Yes, this works for me even tho I'm on zsh.
>
> In ~/.bashrc put this, carefully, as bash is fussy!
>
> function hi () {
> echo hello
> }
>
> Then invoke Emacs like this:
>
> SHELL=/bin/bash BASH_ENV=~/.bashrc emacs -Q
>
> Then:
>
> M-x shell-command RET hi RET
>
> N.B. Don't rely on SHELL if you want to change the
> shell in general.
>
> --
> underground experts united
> http://user.it.uu.se/~embe8573
hello Emanuel,
yes this works perfectly fine and even with --daemon!
many thanks!
Michael