Fork me on GitHub

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.


How can I make that work in eshell/spacemacs?


@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 -


@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.