Fork me on GitHub
#spacemacs
<
2017-05-20
>
kurt-o-sys08:05:47

In spacemacs, I'm using eshell as shell. However:

$ TEST="$(cat my-file)" <command>
Symbol's value as variable is void: eshell-temp
When running cat my-file, I do get the contents of the file. What I want to achieve is to run a command with a given environment variable (`TEST` in this case) with the value of that variable read from a file.

kurt-o-sys08:05:01

How can I make that work in eshell/spacemacs?

practicalli-john10:05:59

@kurt-o-sys sorry, I don't know much about shell, but you could configure Spacemacs to use your command line shell, e.g. bash, zsh - https://practicalli.github.io/spacemacs/create-a-project/using-emacs-eshell.html

kurt-o-sys10:05:37

@jr0cket right, thx... Maybe it makes sense to not use eshell. It seems to have some other flaws, so yeah, I may dive into zsh and see how that works out.