reddit / emacs

Eshell startup scripts (login/profile) both echoing values

gopar · 2022-08-26 01:06
Anyone here use `eshell-login-script` or `eshell-rc-script`? Looks like eshell tends to echo whatever values are there into the shell when starting up. Does anyone know how to turn this off? Example, I have this in `login` file: ``` (setenv "REDDIT" "EMACS") ``` and this in `profile`: ``` (setenv "REDDIT" "GOPAR") ``` Both values are being echo'd to shell. Initially I thought it was something in my config but it even happens on an empty config emacs. See pic: [https://imgur.com/a/c6XTY2u](https://imgur.com/a/c6XTY2u) `C-h v` doesn't give any leads. Any info appreciated. Thanks!
lebensterben · 2022-08-26 01:46
Just don't use eshell... it's slow and strange
MitchellMarquez42 · 2022-08-26 03:29
Use sh syntax for setting variables: export REDDIT="EMACS"
ComfyRug · 2022-08-26 07:08
I don't use either but I'm willing to bet that it's because `setenv` returns the value. You could try something like `(progn (setenv "REDDIT" "EMACS") nil)`? Bit hacky though.
gopar · 2022-08-26 13:58
Thanks, I was trying to avoid doing something like that though. Hopefully I can find a way to mix sh and elisp without elisp being echo'd
gopar · 2022-08-26 13:59
Gah! I completely forgot that I can use sh syntax. That fixes it for me. Sad that if I want to use elisp, it'll be echo'd out. Hopefully I can figure out how to fix that, but for now sh syntax works. Thanks!