This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-20
Channels
- # aws (7)
- # bangalore-clj (2)
- # beginners (64)
- # boot (34)
- # cider (1)
- # cljs-dev (8)
- # cljsrn (22)
- # clojure (268)
- # clojure-greece (2)
- # clojure-italy (8)
- # clojure-quebec (1)
- # clojure-russia (5)
- # clojure-spec (7)
- # clojurescript (7)
- # consulting (1)
- # cursive (184)
- # data-science (1)
- # datascript (18)
- # datomic (54)
- # dirac (1)
- # emacs (17)
- # graphql (1)
- # klipse (2)
- # leiningen (1)
- # off-topic (17)
- # onyx (10)
- # pedestal (2)
- # reagent (16)
- # spacemacs (4)
- # untangled (3)
- # vim (28)
- # yada (3)
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 - https://practicalli.github.io/spacemacs/create-a-project/using-emacs-eshell.html
@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.